3 # COPYRIGHT NOTICE STARTS HERE
5 # Copyright 2019 © Samsung Electronics Co., Ltd.
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 # COPYRIGHT NOTICE ENDS HERE
25 # - dev tools (libssl-dev in particular)
28 # Example install in Ubuntu 18.04
29 # sudo apt install -y python3-pip
30 # sudo apt install build-essential libssl-dev libffi-dev python3-dev
31 # sudo apt install -y python3-venv
33 VENV_PATH=${VENV_PATH:-~/molecule_venv}
36 python3.6 -m venv ${VENV_PATH}
38 # Activate virtual env
39 source ${VENV_PATH}/bin/activate
42 if [ ! -z ${VIRTUAL_ENV} ]; then
43 echo "Activated virtual env in ${VIRTUAL_ENV}"
44 pip install molecule==2.20 ansible==2.7.8 docker pyopenssl