-
clone this repo:
git clone https://github.com/gtergeomatica/simile-containers.git
-
add
settings_private.py
configuration file for backend app in root dir -
run
./compose.sh
(only for Linux, for Windows more instructions should be added: cloning the repositories of FE and BE (itosos and simile services in the compose)) -
In order to use a development setup run:
docker-compose -f docker-compose-dev.yml up
To create an env for development (check the
docker-compose-dev.yml
for specifications) and add -d at the end of the command if you prefere detached mode. -
When you finished the development you can put the env to sleep with:
docker-compose down -v
- In order to use a development setup run:
docker-compose -f docker-compose-deploy.yml up
Before share for deployment online purposes remember to correctly setup the subsequent
value in the config.js
file:
const config = {
istsosProxy: proxyConf, // <- otherwise for development use devProxyConf instead of proxyConf
...
cd simile
docker build -f deploy.Dockerfile .
at the end of process it returns somethig like: Successfully built b0cf2d8dd402
the final random string is always different and it identify the new built image
docker tag b0cf2d8dd402 manuelegter/simile-web:latest
WARNING: PLease remember to update the image id with the correct one you obtained from previouse step
docker login
docker push manuelegter/simile-web:latest
cd istsos
docker build .
at the end of process it returns somethig like: Successfully built b0cf2d8dd402
the final random string is always different and it identify the new built image
docker tag b0cf2d8dd402 manuelegter/istsos-proxy:latest
WARNING: PLease remember to update the image id with the correct one you obtained from previouse step
docker login
docker push manuelegter/istsos-proxy:latest