Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kotahi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
547e906c
Commit
547e906c
authored
4 years ago
by
Mihail Gorceag
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://gitlab.coko.foundation/kotahi/kotahi
into main
parents
75589ca6
e3e056b1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.coko.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.coko.yml
.gitlab-ci.elife.yml
+0
-8
0 additions, 8 deletions
.gitlab-ci.elife.yml
Dockerfile-ci
+9
-2
9 additions, 2 deletions
Dockerfile-ci
Dockerfile-production
+8
-17
8 additions, 17 deletions
Dockerfile-production
with
18 additions
and
28 deletions
.gitlab-ci.coko.yml
+
1
−
1
View file @
547e906c
...
...
@@ -23,7 +23,7 @@ build:
-
|
if [ -z "$DOCKERHUB_USERNAME" ] || [ -z "$DOCKERHUB_PASSWORD" ]; then echo "Not pushing" && exit 0; fi
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
docker build
--build-arg instance_name=coko --build-arg node_env=production --build-arg server_protocol=http --build-arg server_host=0.0.0.0 --build-arg server_port=3000 --build-arg client_host=0.0.0.0 --build-arg client_protocol=http --build-arg client_port=4000
--file ./Dockerfile-ci --cache-from $IMAGE_ORG/$IMAGE_NAME:latest --tag $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA --tag $IMAGE_ORG/$IMAGE_NAME:latest .
docker build --file ./Dockerfile-ci --cache-from $IMAGE_ORG/$IMAGE_NAME:latest --tag $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA --tag $IMAGE_ORG/$IMAGE_NAME:latest .
docker push $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
docker push $IMAGE_ORG/$IMAGE_NAME:latest
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.elife.yml
+
0
−
8
View file @
547e906c
...
...
@@ -23,14 +23,6 @@ build:
docker login -u $DOCKERHUB_USERNAME_ELIFE -p $DOCKERHUB_PASSWORD_ELIFE
docker pull $IMAGE_ORG/$IMAGE_NAME:latest || true
docker build \
--build-arg instance_name=elife \
--build-arg node_env=production \
--build-arg server_protocol= \
--build-arg server_host=localhost \
--build-arg server_port=3000 \
--build-arg client_protocol=http \
--build-arg client_host=0.0.0.0 \
--build-arg client_port=4000 \
--file ./Dockerfile-production \
--cache-from $CI_REGISTRY_IMAGE:latest \
--tag $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA \
...
...
This diff is collapsed.
Click to expand it.
Dockerfile-ci
+
9
−
2
View file @
547e906c
FROM cypress/browsers:node14.16.0-chrome89-ff86
ENV NODE_ENV "development"
ENV SERVER_PROTOCOL "http"
ENV SERVER_HOST "0.0.0.0"
ENV SERVER_PORT "3000"
ENV CLIENT_PROTOCOL "http"
ENV CLIENT_HOST "0.0.0.0"
ENV CLIENT_PORT "4000"
ENV INSTANCE_NAME "coko"
ENV HOME "/home/simplej"
RUN mkdir -p ${HOME}
WORKDIR ${HOME}
ENV NODE_ENV "development"
# Only copy things needed for the yarn install
COPY package.json yarn.lock ./
...
...
This diff is collapsed.
Click to expand it.
Dockerfile-production
+
8
−
17
View file @
547e906c
...
...
@@ -18,23 +18,14 @@ RUN yarn install --frozen-lockfile --production=false
COPY . .
ARG node_env
ARG server_protocol
ARG server_host
ARG server_port
ARG client_protocol
ARG client_host
ARG client_port
ARG instance_name
ENV NODE_ENV=$node_env
ENV SERVER_PROTOCOL=$server_protocol
ENV SERVER_HOST=$server_host
ENV SERVER_PORT=$server_port
ENV CLIENT_PROTOCOL=$client_protocol
ENV CLIENT_HOST=$client_host
ENV CLIENT_PORT=$client_port
ENV INSTANCE_NAME=$instance_name
ENV INSTANCE_NAME "elife"
ENV NODE_ENV "production"
ENV SERVER_PROTOCOL "http"
ENV SERVER_HOST "localhost"
ENV SERVER_PORT "3000"
ENV CLIENT_PROTOCOL "http"
ENV CLIENT_HOST "0.0.0.0"
ENV CLIENT_PORT "4000"
RUN yarn webpack --config webpack/webpack.production.config.js
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment