Skip to content

Instantly share code, notes, and snippets.

@jeff1evesque
Last active August 5, 2021 08:11
Show Gist options
  • Save jeff1evesque/ae4923e95bfe216f6b0d6ee912aad0fd to your computer and use it in GitHub Desktop.
Save jeff1evesque/ae4923e95bfe216f6b0d6ee912aad0fd to your computer and use it in GitHub Desktop.
## login
docker login
## update base
docker build -f dockerfile/base.dockerfile -t jeff1evesque/ml-base:0.8 .
docker push jeff1evesque/ml-base:0.8
## update mongodb
docker build -f dockerfile/mongodb.dockerfile -t jeff1evesque/ml-mongodb:0.8 .
docker push jeff1evesque/ml-mongodb:0.8
## update mariadb
docker build -f dockerfile/mariadb.dockerfile -t jeff1evesque/ml-mariadb:0.8 .
docker push jeff1evesque/ml-mariadb:0.8
## update redis
docker build -f dockerfile/redis.dockerfile -t jeff1evesque/ml-redis:0.8 .
docker push jeff1evesque/ml-redis:0.8
## update sklearn
docker build -f dockerfile/sklearn.dockerfile -t jeff1evesque/ml-sklearn:0.8 .
docker push jeff1evesque/ml-sklearn:0.8
## update webserver
docker build -f dockerfile/webserver.dockerfile -t jeff1evesque/ml-webserver:0.8 .
docker push jeff1evesque/ml-webserver:0.8
## update nginx-web
docker build --build-arg TYPE=web --build-arg RUN=false -f dockerfile/nginx.dockerfile -t jeff1evesque/ml-nginx-web:0.8 .
docker push jeff1evesque/ml-nginx-web:0.8
## update nginx-api
docker build --build-arg TYPE=api --build-arg RUN=false -f dockerfile/nginx.dockerfile -t jeff1evesque/ml-nginx-api:0.8 .
docker push jeff1evesque/ml-nginx-api:0.8
## update sass
docker build -f dockerfile/sass.dockerfile -t jeff1evesque/ml-sass:0.8 .
docker push jeff1evesque/ml-sass:0.8
## update browserify
docker build -f dockerfile/browserify.dockerfile -t jeff1evesque/ml-browserify:0.8 .
docker push jeff1evesque/ml-browserify:0.8
## logout
docker logout
## example: run container
docker run --hostname nginx-api --name nginx-api -d jeff1evesque/ml-nginx-api:0.8
## example: execute running container
docker exec -it nginx-api /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment