Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.