Ensure system packages get copied to prod container
This commit is contained in:
parent
28d5544cef
commit
38c86362b0
@ -17,6 +17,7 @@ defaults:
|
|||||||
APP_DIR: /opt/atat/atst
|
APP_DIR: /opt/atat/atst
|
||||||
ATAT_DOCKER_REGISTRY_URL: registry.atat.codes:443
|
ATAT_DOCKER_REGISTRY_URL: registry.atat.codes:443
|
||||||
CONTAINER_NAME: atst-container
|
CONTAINER_NAME: atst-container
|
||||||
|
PYTHON_SITE_PACKAGES_DIR: /usr/lib/python3.6/site-packages
|
||||||
PROD_IMAGE_NAME: atst-prod
|
PROD_IMAGE_NAME: atst-prod
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -138,6 +139,9 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: "Run Alpine Setup"
|
name: "Run Alpine Setup"
|
||||||
command: docker exec -t --workdir ${APP_DIR} ${CONTAINER_NAME} ./script/alpine_setup
|
command: docker exec -t --workdir ${APP_DIR} ${CONTAINER_NAME} ./script/alpine_setup
|
||||||
|
- run:
|
||||||
|
name: "Copy System Site Packages into the Container"
|
||||||
|
command: docker cp ${PYTHON_SITE_PACKAGES_DIR} ${CONTAINER_NAME}:${PYTHON_SITE_PACKAGES_DIR}
|
||||||
- run:
|
- run:
|
||||||
name: "Run Fix Permissions"
|
name: "Run Fix Permissions"
|
||||||
command: docker exec -t --workdir ${APP_DIR} ${CONTAINER_NAME} ./script/fix_permissions ${APP_USER} ${APP_GROUP}
|
command: docker exec -t --workdir ${APP_DIR} ${CONTAINER_NAME} ./script/fix_permissions ${APP_USER} ${APP_GROUP}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user