-
Notifications
You must be signed in to change notification settings - Fork 0
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 #88 from TrueSparrowSystems/milestone/v0.2.0
New API Endpoints, AWS Secrets and Security Updates
- Loading branch information
Showing
303 changed files
with
14,120 additions
and
5,251 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
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,7 @@ | ||
FROM nsmithuk/local-kms | ||
|
||
EXPOSE 8080 | ||
|
||
# Add a file to the image | ||
WORKDIR /init | ||
COPY init/seed.yaml /init |
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,14 +1,19 @@ | ||
FROM openjdk:17-jdk-alpine | ||
# Set working directory | ||
# Use the openjdk 17 with alpine as a base image | ||
FROM openjdk:17-jdk-alpine as builder | ||
|
||
# Create and set the working directory inside the container | ||
RUN mkdir -p /app | ||
WORKDIR /app | ||
|
||
COPY . /app | ||
# Install bash for Alpine and other necessary tools | ||
RUN apk add --no-cache bash maven | ||
|
||
# Expose port 8080 for the app to listen on | ||
EXPOSE 8080 | ||
# Start the app | ||
RUN apk add --no-cache bash | ||
# Copy the pom.xml and download dependencies | ||
COPY ./pom.xml ./pom.xml | ||
RUN mvn dependency:go-offline | ||
|
||
CMD ["sh", "-c", "start_local.sh"] | ||
# Copy the rest of the application | ||
COPY ./ ./ | ||
|
||
# Expose the port 8080 for the application | ||
EXPOSE 8080 |
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 |
---|---|---|
@@ -1,38 +1,83 @@ | ||
version: '3' | ||
version: "3" | ||
services: | ||
# App server provisioning | ||
api: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.local | ||
ports: | ||
- '8080:8080' | ||
- "8080:8080" | ||
networks: | ||
- localdev | ||
volumes: | ||
- './:/app' | ||
command: bash -c 'sh start_local.sh' | ||
- "./:/app" | ||
- "~/.m2:/root/.m2" | ||
environment: | ||
- ENVIRONMENT=development | ||
- AWS_ACCESS_KEY_ID=local | ||
- AWS_SECRET_ACCESS_KEY=local | ||
- AWS_REGION=us-east-1 | ||
command: ["./mvnw", "spring-boot:run"] | ||
depends_on: | ||
- dynamodb | ||
- localkms | ||
- memcached | ||
|
||
test: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.local | ||
ports: | ||
- "8080:8080" | ||
networks: | ||
- localdev | ||
volumes: | ||
- "./:/app" | ||
- "~/.m2:/root/.m2" | ||
environment: | ||
- ENVIRONMENT=local-test | ||
- AWS_ACCESS_KEY_ID=local | ||
- AWS_SECRET_ACCESS_KEY=local | ||
- AWS_REGION=us-east-1 | ||
command: ["./mvnw", "clean", "test", "jacoco:report"] | ||
depends_on: | ||
- dynamodb | ||
- localkms | ||
- memcached | ||
|
||
# Memcached provisioning | ||
memcached: | ||
image: memcached | ||
ports: | ||
- '11211:11211' | ||
- "11211:11211" | ||
networks: | ||
- localdev | ||
|
||
# DynamoDB provisioning | ||
|
||
localkms: | ||
image: nsmithuk/local-kms | ||
ports: | ||
- "4599:8080" | ||
volumes: | ||
- ./init:/init | ||
networks: | ||
- localdev | ||
environment: | ||
- AWS_ACCESS_KEY_ID='local' | ||
- AWS_SECRET_ACCESS_KEY='local' | ||
- AWS_REGION='us-east-1' | ||
- KMS_ACCOUNT_ID='111122223333' | ||
- KMS_REGION='us-east-1' | ||
- KMS_SEED_PATH=init/seed.yaml | ||
|
||
dynamodb: | ||
image: amazon/dynamodb-local:latest | ||
ports: | ||
- '8000:8000' | ||
- "8000:8000" | ||
networks: | ||
- localdev | ||
volumes: | ||
- "./docker/dynamodb:/home/dynamodblocal/data" | ||
- "./docker/dynamodb:/home/dynamodblocal/data" | ||
working_dir: /home/dynamodblocal | ||
command: '-jar DynamoDBLocal.jar -sharedDb -dbPath ./data' | ||
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ./data" | ||
|
||
networks: | ||
localdev: | ||
driver: bridge | ||
driver: bridge |
Submodule docs
updated
48 files
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,17 @@ | ||
# This file is used to seed the local KMS instance with keys and aliases. | ||
# The keys and aliases defined here will be created when the KMS instance is | ||
# first started. If the keys or aliases already exist, they will not be | ||
# modified. | ||
# This is for testing purposes only. | ||
|
||
Keys: | ||
Symmetric: | ||
Aes: | ||
- Metadata: | ||
KeyId: bc436485-5092-42b8-92a3-0aa8b93536dc | ||
BackingKeys: | ||
- 5cdaead27fe7da2de47945d73cd6d79e36494e73802f3cd3869f1d2cb0b5d7a9 | ||
|
||
Aliases: | ||
- AliasName: alias/testing | ||
TargetKeyId: bc436485-5092-42b8-92a3-0aa8b93536dc |
Oops, something went wrong.