Skip to content

Commit

Permalink
feat: added copy-certs and wait-for (#48)
Browse files Browse the repository at this point in the history
moved wait-for out of core
  • Loading branch information
Maurice Faber committed Nov 22, 2021
1 parent 9422f85 commit f46c27a
Show file tree
Hide file tree
Showing 19 changed files with 1,223 additions and 1,093 deletions.
6 changes: 5 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#######################################################
# Sample development values
# Sample development values
# Tasks will complain when a value is missing ;)
#######################################################

Expand Down Expand Up @@ -36,3 +36,7 @@ DRONE_URL='http://127.0.0.1:8081'

# Drone task
DRONE_TOKEN=''

OTOMI_FLAGS='{}'
WAIT_OPTIONS='{"retries":1}'
WAIT_URL='https://redkubes.com'
36 changes: 31 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,33 @@
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Debug certs-aws Tasks",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "tasks:certs-aws-dev"],
"env": {
"DEBUG": "*",
"NODE_TLS_REJECT_UNAUTHORIZED": "0",
"REGION": "eu-central-1"
},
"cwd": "${workspaceRoot}",
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Debug copy-certs task",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "tasks:copy-certs-dev"],
"cwd": "${workspaceRoot}",
"env": {
"DEBUG": "*",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
},
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
Expand Down Expand Up @@ -131,15 +158,14 @@
{
"type": "node",
"request": "launch",
"name": "Debug certs-aws Tasks",
"name": "Debug wait-for task",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "tasks:certs-aws-dev"],
"runtimeArgs": ["run-script", "tasks:wait-for-dev"],
"cwd": "${workspaceRoot}",
"env": {
"DEBUG": "*",
"NODE_TLS_REJECT_UNAUTHORIZED": "0",
"REGION": "eu-central-1"
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
},
"cwd": "${workspaceRoot}",
"console": "integratedTerminal"
}
]
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# --------------- Dev stage for developers to override sources
FROM node:14-alpine as dev
FROM node:15-alpine as dev
ARG NPM_TOKEN
RUN test -n "$NPM_TOKEN"

Expand Down Expand Up @@ -33,7 +33,7 @@ FROM dev as clean
# below command removes the packages specified in devDependencies and set NODE_ENV to production
RUN npm prune --production
# --------------- Production stage
FROM node:14-alpine AS prod
FROM node:15-alpine AS prod

COPY --from=dev /usr/local/bin/node /usr/bin/
COPY --from=dev /usr/lib/libgcc* /usr/lib/
Expand Down
Loading

0 comments on commit f46c27a

Please sign in to comment.