Skip to content

Instantly share code, notes, and snippets.

@ryanwilsonperkin
Created October 29, 2018 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanwilsonperkin/8c082826bdb532301059c91c27f4a40b to your computer and use it in GitHub Desktop.
Save ryanwilsonperkin/8c082826bdb532301059c91c27f4a40b to your computer and use it in GitHub Desktop.
convox start does not respect .dockerignore for code sync

This is a minimalist reproduction case to point out an issue with code syncing in Convox Gen1.

Run this program with:

convox start --manifest docker-compose-local.yml --generation 1

Now, in a separate terminal you can use docker exec to access the running "web" service and verify that the DONTSYNC file has not been uploaded.

Next, modify the DONTSYNC file. What you should see, is that convox uploads the new change, despite that file being ignored in .dockerignore. This can be confirmed by again using docker exec to attach to the running container and see that the file has been uploaded. What you would hope to see, is that convox would not sync this code change at all.

version: '2'
services:
web:
build: .
command: /app/foo.py
FROM python:2
COPY . /app
Some dummy text
#!/usr/local/bin/python
import time, sys
while True:
sys.stdout.write("Sleeping for 5 seconds\n")
sys.stdout.flush()
time.sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment