-
Notifications
You must be signed in to change notification settings - Fork 4
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 #12 from Sage-Bionetworks/prepare-release
Prepare release
- Loading branch information
Showing
45 changed files
with
106 additions
and
144 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
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Dir for bundles | ||
dist | ||
node_modules | ||
.idea | ||
venv | ||
venv |
This file was deleted.
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
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,11 @@ | ||
version: "3.8" | ||
|
||
services: | ||
date-annotator: | ||
image: nlpsandbox/date-annotator-example:latest | ||
build: | ||
context: server | ||
dockerfile: Dockerfile | ||
container_name: date-annotator-example | ||
ports: | ||
- "8080:8080" |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,45 @@ | ||
FROM python:3.8.5-slim-buster | ||
|
||
ARG S6_VERSION | ||
ENV S6_VERSION=${S6_VERSION:-v2.1.0.0} | ||
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 | ||
ENV PIP_NO_CACHE_DIR=off | ||
ENV APP_USER=app | ||
ENV APP_DIR=/opt/app | ||
|
||
# Safer bash scripts with 'set -euxo pipefail' | ||
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"] | ||
|
||
# Install dependencies | ||
# hadolint ignore=DL3008 | ||
RUN apt-get update -qq -y \ | ||
&& apt-get install --no-install-recommends -qq -y \ | ||
curl \ | ||
unzip \ | ||
&& apt-get -y autoclean \ | ||
&& apt-get -y autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Set up S6 init system | ||
RUN curl -fsSL https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-amd64.tar.gz \ | ||
-o /tmp/s6-overlay.tar.gz \ | ||
&& tar xzf /tmp/s6-overlay.tar.gz --directory / \ | ||
&& rm -fr /tmp/s6-overlay.tar.gz | ||
|
||
# Add app user | ||
RUN useradd -m -s /bin/bash ${APP_USER} \ | ||
&& echo "${APP_USER}:${APP_USER}" | chpasswd | ||
|
||
# Copy server files | ||
COPY . ${APP_DIR} | ||
RUN chown -R ${APP_USER}:${APP_USER} ${APP_DIR} | ||
|
||
# Install dependencies | ||
RUN pip install -r ${APP_DIR}/requirements.txt | ||
|
||
# Add s6 scripts | ||
COPY root / | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["/init"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 @@ | ||
connexion==2.7.0 | ||
requests==2.24.0 | ||
swagger-ui-bundle==0.0.8 | ||
synapseclient==2.2.0 |
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,4 @@ | ||
#!/bin/sh | ||
|
||
mkdir -p /var/log/app | ||
chown nobody:nogroup /var/log/app |
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,5 @@ | ||
#!/usr/bin/execlineb -S0 | ||
|
||
# By default, services created in /etc/services.d will automatically restart. | ||
# Here we bring the container down if a service crashes. | ||
s6-svscanctl -t /var/run/s6/services |
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,4 @@ | ||
#!/usr/bin/with-contenv sh | ||
|
||
cd /opt/app | ||
s6-setuidgid app python -m openapi_server |
File renamed without changes.
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,4 @@ | ||
Flask-Testing==0.8.0 | ||
pytest-cov>=2.8.1 | ||
pytest-randomly==3.4.1 # needed for python 2.7+3.4 | ||
pytest~=6.1.1 # needed for python 2.7+3.4 |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.