-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the latest containers #1743
Conversation
Hi AJ, great work on this! - just a few small things
|
… feature/new-dev-image
Awesome! Thank you for the feedback. There is a new preview dev image (latest non-stable). You can pull it with: docker pull ghcr.io/nationalarchives/tna-python-dev:preview Then you can rebuild your dev container with it: docker compose up --build -d dev
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! 🚀 Thanks AJ!
@jamesbiggs - If you're happy that everything works, I need to do two more things before we merge:
Are you happy for me to continue on with those? |
Go for it! 😃 |
…or cyclomatic complexity in three Python functions
Possible replacement for #1374
Steps/things to test
Setup
docker compose stop && docker compose rm && docker system prune -a
docker compose up -d
Dev commands
docker compose exec dev format
from your host machine or simplyformat
from inside thedev
container (there should be LOTS of fixes from this!)develop
environment of Platform.sh with eitherdocker compose exec dev pull
from your host machine orpull
from inside thedev
container (the first pull will take longer because it will install and set up the Platform.sh CLI) - ensure you have thePLATFORMSH_CLI_TOKEN
env var set up in your.env
filepull-media
andpull-data
pull main
docker compose exec dev upgrade
from your host machine orupgrade
from inside thedev
container (if there are any upgrades you should restart theapp
container withdocker compose up -d --build app
) - there should be quite a few of these to test withdocker compose exec dev poetry add emoji
orpoetry add emoji
indev
(restart theapp
container once you are done) - this should also be possible in theapp
container withdocker compose exec app poetry add emoji
and you then have to restart yourdev
containerApp commands
manage.py
command with eitherdocker compose exec app manage makemigrations
on your host machine ormanage makemigrations
in theapp
container