mozilla-releng/balrog

Error on docker-compose up - apt-get: not found

allan-silva opened this issue · 2 comments

docker-compose up command results in "apt-get: not found" error.

This happens because mysql:5.7 is based on oraclelinux:7-slim , we can use mysql:5.7-debianinstead.

In addition, we have a duplication of the links attribute on balrogpub service in docker-compose:

balrogpub:
build:
context: .
dockerfile: Dockerfile.test
args:
PYTHON_VERSION: 3.9
depends_on:
balrogdb:
condition: service_healthy
command: public
ports:
- "9010:9010"
volumes:
- .:/app
links:
- autograph
environment:
- DBURI=mysql://balrogadmin:balrogadmin@balrogdb/balrog
- AUTOGRAPH_URL=http://autograph:8000
- AUTOGRAPH_KEYID=normandy
- AUTOGRAPH_USERNAME=alice
- AUTOGRAPH_PASSWORD=fs5wgcer9qj819kfptdlp8gm227ewxnzvsuj9ztycsx08hfhzu
- SECRET_KEY=blahblah
- PORT=9010
- LOG_FORMAT=plain
- LOG_LEVEL=WARNING
links:
- balrogdb

Interesting. I wonder when they changed this...

For the record: docker-library/mysql#867 is where this changed, a few weeks ago.