-
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.
🩹 fix: auths ip and dockerfile creation
- Loading branch information
1 parent
7d9a70c
commit 3bdf00f
Showing
4 changed files
with
46 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ubuntu:latest as cmr_cache | ||
|
||
USER root | ||
|
||
RUN apt update -y && \ | ||
apt upgrade -y && \ | ||
apt install -y libboost-all-dev clang && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /usr/cmr-cache/ | ||
|
||
COPY . /tmp/build-cmr-cache/ | ||
|
||
RUN cd /tmp/build-cmr-cache/ && \ | ||
clang++ -o cmr_cache main.cpp -I./vendor/yaml -I/usr/include/boost -L/usr/lib/x86_64-linux-gnu -lboost_system -lpthread -std=c++17 && \ | ||
cp cmr_cache /usr/cmr-cache/ && \ | ||
cp -r config/ /usr/cmr-cache/ && \ | ||
rm -rf /tmp/build-cmr-cache/ | ||
|
||
ENTRYPOINT [ "./cmr_cache" ] |
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,18 @@ | ||
version: "3" | ||
|
||
services: | ||
cache: | ||
container_name: cmr-cache | ||
restart: always | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "6347:6347" | ||
volumes: | ||
- cmr-cache-data:/usr/cmr-cache/data/ | ||
|
||
|
||
volumes: | ||
cmr-cache-data: | ||
driver: local |