Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
M
Motion Bank API
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Motion Bank
Services
Motion Bank API
Compare Revisions
b472d42783bfb66e918d56be0ac20228d68627cc...23785cf241eed6e76769e1f9d3ccd16842acb065
Source
23785cf241eed6e76769e1f9d3ccd16842acb065
Select Git revision
...
Target
b472d42783bfb66e918d56be0ac20228d68627cc
Select Git revision
Compare
Commits (4)
Add docker lib module
· ff3a0c00
Anton
authored
Sep 30, 2019
ff3a0c00
Add circle config
· 215c4d4e
Anton
authored
Oct 14, 2019
215c4d4e
Update docker-lib git module
· b54b860e
Anton
authored
Oct 14, 2019
b54b860e
Add entrypoint script for expanding secrets as env variables
· 23785cf2
Anton
authored
Oct 14, 2019
23785cf2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
116 additions
and
1 deletion
+116
-1
.circleci/config.yml
.circleci/config.yml
+107
-0
.docker-lib
.docker-lib
+1
-0
.gitmodules
.gitmodules
+3
-0
Dockerfile
Dockerfile
+5
-1
No files found.
.circleci/config.yml
0 → 100644
View file @
23785cf2
aliases
:
-
&pull-submodules
name
:
Pull Submodules
command
:
|
ssh-keyscan gitlab.rlp.net >> ~/.ssh/known_hosts
git submodule init
git submodule update
-
&install-dependencies
name
:
Install dependencies
command
:
|
apk add --update --no-cache nodejs nodejs-npm python make g++ pkgconfig libsecret-dev
npm config set unsafe-perm true
npm i -g npm
node --version
npm --version
npm i -g @quasar/cli
npm install
version
:
2
jobs
:
release_dev
:
working_directory
:
/app
docker
:
-
image
:
docker:stable-git
steps
:
-
checkout
-
run
:
*pull-submodules
-
setup_remote_docker
-
run
:
*install-dependencies
-
run
:
name
:
Release Dev Image
environment
:
IS_STAGING
:
true
API_HOST
:
https://api-dev.motionbank.org
command
:
|
set +o pipefail
AUTH0_CLIENT_ID=${DEV_AUTH0_CLIENT_ID} SENTRY_DSN=${DEV_SENTRY_DSN} npm run build
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker build --no-cache -t motionbank/systems-frontend:dev .
docker push motionbank/systems-frontend:dev
release_production
:
working_directory
:
/app
docker
:
-
image
:
docker:stable-git
steps
:
-
checkout
-
run
:
*pull-submodules
-
setup_remote_docker
-
run
:
*install-dependencies
-
run
:
name
:
Release Production Image
command
:
|
set +o pipefail
AUTH0_CLIENT_ID=${PROD_AUTH0_CLIENT_ID} SENTRY_DSN=${PROD_SENTRY_DSN} npm run build
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker build --no-cache -t motionbank/systems-frontend:${CIRCLE_BRANCH} .
docker push motionbank/systems-frontend:${CIRCLE_BRANCH}
release_staging
:
working_directory
:
/app
docker
:
-
image
:
docker:stable-git
steps
:
-
checkout
-
run
:
*pull-submodules
-
setup_remote_docker
-
run
:
*install-dependencies
-
run
:
name
:
Release Staging Image
environment
:
IS_STAGING
:
true
API_HOST
:
https://api-staging.motionbank.org
command
:
|
set +o pipefail
AUTH0_CLIENT_ID=${STAGING_AUTH0_CLIENT_ID} SENTRY_DSN=${STAGING_SENTRY_DSN} npm run build
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker build --no-cache -t motionbank/systems-frontend:staging .
docker push motionbank/systems-frontend:staging
workflows
:
version
:
2
build_pipeline
:
jobs
:
-
release_dev
:
filters
:
branches
:
only
:
master
-
release_staging
:
filters
:
branches
:
only
:
staging
-
release_production
:
filters
:
branches
:
only
:
/^release_.+$/
nightly
:
triggers
:
-
schedule
:
cron
:
"
0
1
*
*
1"
filters
:
branches
:
only
:
-
master
jobs
:
-
release_dev
-
release_staging
.docker-lib
@
e110a926
Subproject commit e110a92669f2dc9569e4bead385aa9970591847b
.gitmodules
0 → 100644
View file @
23785cf2
[submodule ".docker-lib"]
path = .docker-lib
url = git@gitlab.rlp.net:motionbank/tools/docker-lib.git
Dockerfile
View file @
23785cf2
FROM
node:10
MAINTAINER
Motion Bank
COPY
.docker-lib/scripts/entrypoint.sh /usr/local/bin/
COPY
.docker-lib/scripts/env_secrets_expand.sh /usr/local/bin/
RUN
chmod
+x /usr/local/bin/
*
.sh
WORKDIR
/app
COPY
. .
RUN
rm
-rf
node_modules
RUN
npm
install
--production
EXPOSE
3030
CMD
[
"node", "src"]
ENTRYPOINT
["entrypoint.sh",
"node", "src"]