try to get things working. Backend does not find database build

This commit is contained in:
Moriz Wahl 2021-10-18 21:07:52 +02:00
parent 9b1d4f243a
commit d6279370fd
3 changed files with 8 additions and 3 deletions

View File

@ -76,6 +76,9 @@ RUN cd ../database && yarn install --production=false --frozen-lockfile --non-in
# yarn build
RUN yarn run build
# yarn build database
RUN cd ../database && yarn run build
##################################################################################
# TEST ###########################################################################
##################################################################################

View File

@ -73,7 +73,7 @@ RUN yarn run build
FROM build as test_up
# Run command
CMD /bin/sh -c "yarn run dev_up"
CMD /bin/sh -c "yarn install && yarn run dev_up"
##################################################################################
# TEST RESET #####################################################################
@ -81,7 +81,7 @@ CMD /bin/sh -c "yarn run dev_up"
FROM build as test_reset
# Run command
CMD /bin/sh -c "yarn run dev_reset"
CMD /bin/sh -c "yarn install && yarn run dev_reset"
##################################################################################
# TEST DOWN ######################################################################
@ -89,7 +89,7 @@ CMD /bin/sh -c "yarn run dev_reset"
FROM build as test_down
# Run command
CMD /bin/sh -c "yarn run dev_down"
CMD /bin/sh -c "yarn install && yarn run dev_down"
##################################################################################
# PRODUCTION (Does contain only "binary"- and static-files to reduce image size) #

View File

@ -37,6 +37,7 @@ services:
# Therefore it is possible to have a different node version on the host machine
- backend_node_modules:/app/node_modules
- backend_database_node_modules:/database/node_modules
- backend_database_build:/database/build
# bind the local folder to the docker to allow live reload
- ./backend:/app
- ./database:/database
@ -155,6 +156,7 @@ volumes:
frontend_node_modules:
backend_node_modules:
backend_database_node_modules:
backend_database_build:
database_node_modules:
database_build:
login_build_ubuntu_3.1: