Skip to content

Commit

Permalink
pipeline fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Depreys Alexander committed Dec 11, 2024
1 parent 9ecf525 commit 4222986
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# mongodb
MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=example
DATABASE_HOST=mongo
DATABASE_HOST=db
DATABASE_NAME=nosql
USER_COLLECTION=users
LOGO_COLLECTION=logos
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
depends_on:
- influxdb2

mongo:
db:
env_file:
- .env
image: mongo:7.0.5
Expand Down
10 changes: 5 additions & 5 deletions mongo_seed.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ FROM mongo:7.0.5

COPY ./dumps/mongo/ ./

CMD mongoimport --host mongo --username ${MONGO_INITDB_ROOT_USERNAME} --password ${MONGO_INITDB_ROOT_PASSWORD} --authenticationDatabase=admin -d ${DATABASE_NAME} -c ${LOGO_COLLECTION} --type json --file ./Logos.json --jsonArray && \
mongoimport --host mongo --username ${MONGO_INITDB_ROOT_USERNAME} --password ${MONGO_INITDB_ROOT_PASSWORD} --authenticationDatabase=admin -d ${DATABASE_NAME} -c ${EQUIPMENT_COLLECTION} --type json --file ./EquipmentList.json --jsonArray && \
mongoimport --host mongo --username ${MONGO_INITDB_ROOT_USERNAME} --password ${MONGO_INITDB_ROOT_PASSWORD} --authenticationDatabase=admin -d ${DATABASE_NAME} -c ${STAFF_COLLECTION} --type json --file ./Staff.json --jsonArray && \
mongoimport --host mongo --username ${MONGO_INITDB_ROOT_USERNAME} --password ${MONGO_INITDB_ROOT_PASSWORD} --authenticationDatabase=admin -d ${DATABASE_NAME} -c ${USER_COLLECTION} --type json --file ./Users.json --jsonArray && \
mongoimport --host mongo --username ${MONGO_INITDB_ROOT_USERNAME} --password ${MONGO_INITDB_ROOT_PASSWORD} --authenticationDatabase=admin -d ${DATABASE_NAME} -c ${WARNING_COLLECTION} --type json --file ./Warnings.json --jsonArray
CMD mongoimport --host db --username ${MONGO_INITDB_ROOT_USERNAME} --password ${MONGO_INITDB_ROOT_PASSWORD} --authenticationDatabase=admin -d ${DATABASE_NAME} -c ${LOGO_COLLECTION} --type json --file ./Logos.json --jsonArray && \
mongoimport --host db --username ${MONGO_INITDB_ROOT_USERNAME} --password ${MONGO_INITDB_ROOT_PASSWORD} --authenticationDatabase=admin -d ${DATABASE_NAME} -c ${EQUIPMENT_COLLECTION} --type json --file ./EquipmentList.json --jsonArray && \
mongoimport --host db --username ${MONGO_INITDB_ROOT_USERNAME} --password ${MONGO_INITDB_ROOT_PASSWORD} --authenticationDatabase=admin -d ${DATABASE_NAME} -c ${STAFF_COLLECTION} --type json --file ./Staff.json --jsonArray && \
mongoimport --host db --username ${MONGO_INITDB_ROOT_USERNAME} --password ${MONGO_INITDB_ROOT_PASSWORD} --authenticationDatabase=admin -d ${DATABASE_NAME} -c ${USER_COLLECTION} --type json --file ./Users.json --jsonArray && \
mongoimport --host db --username ${MONGO_INITDB_ROOT_USERNAME} --password ${MONGO_INITDB_ROOT_PASSWORD} --authenticationDatabase=admin -d ${DATABASE_NAME} -c ${WARNING_COLLECTION} --type json --file ./Warnings.json --jsonArray


0 comments on commit 4222986

Please sign in to comment.