Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": "> 2%, not dead",
"useBuiltIns": "usage",
"corejs": 3
}
],
"@babel/preset-react"
],
"plugins": [
[
"@babel/transform-runtime",
{
"corejs": 3
}
],
[
"@babel/plugin-proposal-object-rest-spread",
{
"loose": true,
"useBuiltIns": true
}
],
[
"@babel/plugin-proposal-private-methods",
{
"loose": true
}
]
]
}
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ language: node_js
git:
depth: 1
node_js:
- "10"
- "14"

services:
- docker

before_install:
- npm install -g npm@7
- npm config set maxsockets 5
- COMMIT=`git rev-parse HEAD` && echo "export const gitCommit = \"${COMMIT}\";" >src/server/version.js
- VERSION=`git describe --always --tags` && echo "export const gitVersion =\"${VERSION}\";" >>src/server/version.js

Expand All @@ -16,4 +18,4 @@ install:

script:
- npm run eslint
- npm run test
- npm run test
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
FROM quay.io/cdis/ubuntu:16.04
FROM quay.io/cdis/ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive

# need libcap2-bin so we can do setcap later
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
sudo \
vim \
&& curl -sL https://deb.nodesource.com/setup_10.x | bash - \
libcap2-bin \
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g npm@7.8.0 \
&& npm install -g npm@7 \
&& npm config set maxsockets 5

COPY . /guppy/
Expand All @@ -34,4 +36,3 @@ EXPOSE 3000
EXPOSE 80

CMD node --max-http-header-size 16000 dist/server/server.js

2 changes: 1 addition & 1 deletion devHelper/docker/esearch.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cluster.name=localdev
discovery.type=single-node
"ES_JAVA_OPTS=-Xms1g -Xmx1g"
ES_JAVA_OPTS="-Xms1g -Xmx1g"
5 changes: 2 additions & 3 deletions devHelper/docker/esearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ version: "3.3"
services:
# see https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.7.0
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.12
ports:
- "9200:9200"
- "9300:9300"
networks:
- es
volumes:
- "esdata:/usr/share/elasticsearch/data"
- "/home:/mnt/Users"
env_file:
- ./esearch.env
deploy:
Expand Down Expand Up @@ -40,6 +39,6 @@ services:

volumes:
esdata:

networks:
es:
Loading