-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a525e2
commit 6dc5090
Showing
29 changed files
with
320 additions
and
75 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 |
---|---|---|
@@ -1 +1,38 @@ | ||
FROM ghcr.io/dataswift/base:v0.3.5 | ||
FROM adoptopenjdk/openjdk11:jdk-11.0.6_10-alpine | ||
|
||
ARG FILE_PATH | ||
ENV FILE_PATH=$FILE_PATH | ||
ARG STRING | ||
ENV STRING=$STRING | ||
ARG DELIMITER | ||
ENV DELIMITER=$DELIMITER | ||
ARG KEYWORD | ||
ENV KEYWORD=$KEYWORD | ||
|
||
ARG SBT_VERSION=1.3.10 | ||
|
||
RUN set -x \ | ||
&& apk --update add --no-cache --virtual .build-deps curl \ | ||
&& ESUM="3060065764193651aa3fe860a17ff8ea9afc1e90a3f9570f0584f2d516c34380" \ | ||
&& SBT_URL="https://github.com/sbt/sbt/releases/download/v1.3.10/sbt-1.3.10.tgz" \ | ||
&& apk add bash \ | ||
&& curl -Ls ${SBT_URL} > /tmp/sbt-${SBT_VERSION}.tgz \ | ||
&& sha256sum /tmp/sbt-${SBT_VERSION}.tgz \ | ||
&& (echo "${ESUM} /tmp/sbt-${SBT_VERSION}.tgz" | sha256sum -c -) \ | ||
&& tar -zxf /tmp/sbt-${SBT_VERSION}.tgz -C /opt/ \ | ||
&& sed -i -r 's#run \"\$\@\"#unset JAVA_TOOL_OPTIONS\nrun \"\$\@\"#g' /opt/sbt/bin/sbt \ | ||
&& apk del --purge .build-deps \ | ||
&& rm -rf /tmp/sbt-${SBT_VERSION}.tgz /var/cache/apk/* | ||
|
||
|
||
ENV PATH="/opt/sbt/bin:$PATH" \ | ||
JAVA_OPTS="-XX:+UseContainerSupport -Dfile.encoding=UTF-8" \ | ||
SBT_OPTS="-Xmx2048M -Xss2M" | ||
|
||
WORKDIR /app | ||
ADD . /app | ||
|
||
RUN ["chmod", "-R", "777", "start.sh"] | ||
|
||
CMD ./start.sh | ||
|
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 @@ | ||
application: hat-application |
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,21 @@ | ||
# The manifest for the "staging" environment. | ||
# Read the full specification for the "Environment" type at: | ||
# https://aws.github.io/copilot-cli/docs/manifest/environment/ | ||
|
||
# Your environment name will be used in naming your resources like VPC, cluster, etc. | ||
name: staging | ||
type: Environment | ||
|
||
# Import your own VPC and subnets or configure how they should be created. | ||
# network: | ||
# vpc: | ||
# id: | ||
|
||
# Configure the load balancers in your environment, once created. | ||
# http: | ||
# public: | ||
# private: | ||
|
||
# Configure observability for your environment resources. | ||
observability: | ||
container_insights: false |
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,41 @@ | ||
# The manifest for the "hat-service" service. | ||
# Read the full specification for the "Load Balanced Web Service" type at: | ||
# https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/ | ||
|
||
name: hat-service | ||
type: Load Balanced Web Service | ||
|
||
# Distribute traffic to your service. | ||
http: | ||
path: '/' | ||
healthcheck: | ||
path: '/' | ||
success_codes: '200,301' | ||
healthy_threshold: 3 | ||
unhealthy_threshold: 2 | ||
interval: 30s | ||
timeout: 10s | ||
grace_period: 5m | ||
deregistration_delay: 5s | ||
|
||
image: | ||
build: Dockerfile | ||
port: 9000 | ||
|
||
cpu: 4096 # Number of CPU units for the task. | ||
memory: 8192 # Amount of memory in MiB used by the task. | ||
count: 1 # Number of tasks that should be running in your service. | ||
exec: true # Enable running commands in your container. | ||
network: | ||
connect: true # Enable Service Connect for intra-environment traffic between services. | ||
|
||
variables: # Pass environment variables as key value pairs. | ||
LOG_LEVEL: debug | ||
|
||
|
||
# You can override any of the values defined above by environment. | ||
environments: | ||
staging: | ||
count: 1 # Number of tasks to run for the "test" environment. | ||
deployment: # The deployment strategy for the "test" environment. | ||
rolling: 'recreate' # Stops existing tasks before new ones are started for faster deployments. |
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
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
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
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
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.