Skip to content

Commit

Permalink
feat: create a fake data generation script
Browse files Browse the repository at this point in the history
  • Loading branch information
ewan-escience committed Sep 7, 2022
1 parent 39badee commit 84530d5
Show file tree
Hide file tree
Showing 9 changed files with 1,043 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2021 - 2022 Dusan Mijatovic (dv4all)
# SPDX-FileCopyrightText: 2021 - 2022 Ewan Cahen (Netherlands eScience Center) <e.cahen@esciencecenter.nl>
# SPDX-FileCopyrightText: 2021 - 2022 Netherlands eScience Center
# SPDX-FileCopyrightText: 2021 - 2022 dv4all
# SPDX-FileCopyrightText: 2021 Ewan Cahen (Netherlands eScience Center) <e.cahen@esciencecenter.nl>
# SPDX-FileCopyrightText: 2021 Netherlands eScience Center
#
# SPDX-License-Identifier: Apache-2.0

Expand All @@ -12,6 +12,7 @@
**.iml

# .vscode
**/launch.json

node_modules

Expand Down
6 changes: 6 additions & 0 deletions data-generator/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-FileCopyrightText: 2022 Ewan Cahen (Netherlands eScience Center) <e.cahen@esciencecenter.nl>
# SPDX-FileCopyrightText: 2022 Netherlands eScience Center
#
# SPDX-License-Identifier: Apache-2.0

node_modules
11 changes: 11 additions & 0 deletions data-generator/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: 2022 Ewan Cahen (Netherlands eScience Center) <e.cahen@esciencecenter.nl>
# SPDX-FileCopyrightText: 2022 Netherlands eScience Center
#
# SPDX-License-Identifier: Apache-2.0

FROM node:18.8.0-bullseye-slim
WORKDIR /usr/app
COPY ./package.json /usr/app
RUN npm install
COPY ./main.js /usr/app
CMD npx wait-on --timeout 10000 $POSTGREST_URL && node main.js
Loading

0 comments on commit 84530d5

Please sign in to comment.