sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose up -d --force-recreate --build
sudo docker-compose up --force-recreate --build
sudo docker-compose up --env-file ./.env.list --force-recreate --build
docker build -t saurabharch/rollout-server .
docker run -p 5500:5500 saurahbarch/rollout-server
docker images
docker ps
docker container ls -a
docker container rm id
docker run --name my-mongo -d mongo
sudo docker run --env-file ./.env.list --link my-mongo:mongo rollout-server
Example .env.list file
FIREBASE_APIKEY=123 FIREBASE_CLIENT_EMAIL=firebase-adminsdk-a0r162123@chat21-pre23-01.iam.gserviceaccount.com FIREBASE_PRIVATE_KEY=-----BEGIN PRIVATE KEY-----\nMXYX FIREBASE_PROJECT_ID=tiledesk321-pre-01 DATABASE_URI=mongodb://mongo/test
To tag a local image with name “httpd” and tag “test” into the “fedora” repository with “version1.0.test”:
docker tag rollout-server:test saurabharch/rollout-server:version1.0.5.test
docker login with username (not email) and password docker push saurabharch/rollout-server:latest
https://buddy.works/guides/how-dockerize-node-application
== NOT USED ==
docker run --name my-rollout-server --link my-mongo:mongo -d rollout-server -e FIREBASE_CONFIG_FILE=<FIREBASE_CONFIG_PATH.json> -e DATABASE_URI=mongodb://localhost/test
sudo docker run --name my-rollout-server --link my-mongo:mongo -d rollout-server -e FIREBASE_CONFIG_FILE=/Users/saurabharch/dev/rollout/rollout-server/.firebasekey.json -e DATABASE_URI=mongodb://localhost/test
sudo docker run --env FIREBASE_CONFIG_FILE="/Users/saurabharch/dev/rollout/rollout-server/.firebasekey.json" rollout-server
sudo docker run --env-file FIREBASE_CONFIG_FILE="/home/saurabharch/dev/rollout-server/.firebasekey.json" rollout-server
sudo docker run --env DATABASE_URI="mongodb://10.108.109.1/test" --env-file ./.env.list --link my-mongo:mongo rollout-server
heroku config:set NODE_MODULES_CACHE=false -a rollout-server-pre heroku config:set NODE_MODULES_CACHE=true -a rollout-server-pre
https://stackoverflow.com/questions/35483721/failed-to-replace-env-in-config-using-bash-npm npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" npm publish
heroku config set "//registry.npmjs.org/:_authToken"=${NPM_TOKEN} -a rollout-server-pre
npm run enable-ent
To install chocolatey: in Powershell:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
if chocolate is alredy installed in your system you need to skip this process than after directly switch to 2 step 2.
choco install openssl