-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1443 from PathwayCommons/iss1425_pathway-image-cli
A command-line tool to generate SBGN images for PC pathways
- Loading branch information
Showing
9 changed files
with
365 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ src/scripts/jsonld/* | |
/nohup.out | ||
src/*.gmt | ||
downloads/* | ||
public/img/pathways/* | ||
!/**/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM node:14.21.3 | ||
|
||
# Environment variables | ||
ENV NODE_OPTIONS=--max_old_space_size=8192 | ||
|
||
# Create an unprivileged user w/ home directory | ||
RUN groupadd appuser \ | ||
&& useradd --gid appuser --shell /bin/bash --create-home appuser | ||
|
||
# Create app directory | ||
RUN mkdir -p /home/appuser/app | ||
|
||
# Copy in source code | ||
RUN cd /home/appuser/app && git clone https://github.com/iVis-at-Bilkent/syblars.git | ||
WORKDIR /home/appuser/app/syblars | ||
|
||
# Install app dependencies | ||
# Puppeteer requirements | ||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | ||
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ | ||
&& apt-get update \ | ||
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 libxtst6 gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget \ | ||
--no-install-recommends | ||
|
||
RUN npm clean-install | ||
|
||
# Expose port | ||
EXPOSE 3000 | ||
|
||
# Change ownership of the app to the unprivileged user | ||
RUN chown appuser:appuser -R /home/appuser/app | ||
USER appuser | ||
|
||
# set server start as entry point | ||
ENTRYPOINT npm run start | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.