I'm setting up a CI/CD solution. I would like to run a docker application on a production machine that has no access to the internet.
The constraints are as follows:
Build needs to happen on machine A
Resulting image/container needs to be exported and transported to machine B
Optionally: Run the container again with a docker-compose file
I know about docker commit and repos, but this is sadly not an option, as the resulting server does not have access to the internet.
Here's the docker-compose.yaml; this is not set in stone and can change however necessary
version: '2'
services:
test_dev_app:
image: testdevapp:latest
container_name: test_dev_app
hostname: test_dev_app
environment:
DJANGO_SETTINGS_MODULE: "settings.production"
APPLICATION_RUN_TYPE: "uwsgi"
volumes:
- ./:/data/application
ports:
- "8000:8000"
- "8080:8080"
I'd expect to be able to properly transport a container or image and use the same image on a different machine with docker-compose up