-
Notifications
You must be signed in to change notification settings - Fork 11
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
Showing
13 changed files
with
177 additions
and
51 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Settings.toml |
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,24 @@ | ||
# general settings | ||
# KEY_MANAGER can be one of: google_kms, hashicorp or filesystem | ||
LOCKBOX_DATABASE_URL=postgresql://postgres:postgres@localhost/enclave | ||
LOCKBOX_PORT=18080 | ||
KEY_MANAGER=google_kms | ||
|
||
# filesystem settings | ||
SEED_FILEPATH=./seed | ||
|
||
# google_kms settings | ||
GCLOUD_PROJECT_ID=mercury-441416 | ||
GCLOUD_PROJECT_NUMBER=100600525477 | ||
GCLOUD_LOCATION_ID=global | ||
GCLOUD_SECRET_MANAGER_KEY_NAME=encrypted-key | ||
GCLOUD_KMS_RING=enclave | ||
GCLOUD_CRYPTO_KEY=sealing | ||
|
||
# hashicorp settings | ||
# HASHICORP_HCP_CLIENT_ID= | ||
# HASHICORP_HCP_CLIENT_SECRET= | ||
# HASHICORP_ORGANIZATION_ID= | ||
# HASHICORP_PROJECT_ID= | ||
# HASHICORP_APP_NAME= | ||
# HASHICORP_SECRET_NAME= |
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,46 @@ | ||
# Start with Ubuntu as base image | ||
FROM ubuntu:22.04 | ||
|
||
# Prevent interactive prompts during package installation | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install essential packages | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
curl \ | ||
git \ | ||
ninja-build \ | ||
pkg-config \ | ||
tar \ | ||
unzip \ | ||
zip \ | ||
libpq-dev \ | ||
autoconf \ | ||
automake \ | ||
libtool \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Set up working directory | ||
WORKDIR /app | ||
|
||
# Install vcpkg | ||
RUN git clone https://github.com/Microsoft/vcpkg.git /opt/vcpkg && \ | ||
/opt/vcpkg/bootstrap-vcpkg.sh -disableMetrics | ||
|
||
# Add vcpkg to PATH | ||
ENV PATH="/opt/vcpkg:${PATH}" | ||
|
||
# Set vcpkg root | ||
ENV VCPKG_ROOT=/opt/vcpkg | ||
|
||
# Copy your project files | ||
COPY . . | ||
|
||
# Create build directory and run cmake | ||
RUN mkdir -p build && cd build | ||
RUN cd build && cmake --preset=vcpkg .. | ||
RUN cd build && cmake --build . | ||
|
||
# Set the default command | ||
CMD ["./build/MercuryLockbox"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,10 @@ | |
{ | ||
"name": "openssl", | ||
"version>=": "3.4.0" | ||
}, | ||
{ | ||
"name": "cpr", | ||
"version>=": "1.11.1" | ||
} | ||
] | ||
} |