-
Notifications
You must be signed in to change notification settings - Fork 25
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 #90 from EchoVault/chore/restructure
Project Restructuring + Prod Dockerfile
- Loading branch information
Showing
13 changed files
with
101 additions
and
82 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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
.idea | ||
.DS_Store | ||
bin | ||
volumes/nodes | ||
internal/volumes/nodes | ||
dist/ | ||
pkg/modules/*/aof | ||
pkg/echovault/aof | ||
dump.rdb | ||
**/*/testdata | ||
echovault/aof |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ before: | |
- go generate ./... | ||
|
||
builds: | ||
- main: ./cmd | ||
- main: . | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
|
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,34 +1,11 @@ | ||
FROM homebrew/brew:latest | ||
FROM --platform=linux/amd64 golang:alpine AS build | ||
RUN apk add --no-cache gcc musl-dev | ||
WORKDIR /build | ||
COPY . ./ | ||
RUN CGO_ENABLED=1 CC=gcc GOOS=linux GOARCH=amd64 go build -o bin/server . | ||
|
||
RUN brew tap echovault/echovault | ||
RUN brew install echovault/echovault/echovault | ||
|
||
ENV PORT=7480 | ||
ENV RAFT_PORT=8000 | ||
ENV ML_PORT=7946 | ||
ENV SERVER_ID=1 | ||
ENV PLUGIN_DIR=/usr/local/lib/echovault | ||
ENV DATA_DIR=/var/lib/echovault | ||
ENV TLS=false | ||
ENV MTLS=false | ||
ENV BOOTSTRAP_CLUSTER=false | ||
ENV ACL_CONFIG=/etc/echovault/config/acl.yml | ||
ENV REQUIRE_PASS=false | ||
ENV PASSWORD=password1 | ||
ENV FORWARD_COMMAND=false | ||
ENV SNAPSHOT_THRESHOLD=1000 | ||
ENV SNAPSHOT_INTERVAL=5m30s | ||
ENV RESTORE_SNAPSHOT=true | ||
ENV RESTORE_AOF=false | ||
ENV AOF_SYNC_STRATEGY=everysec | ||
ENV MAX_MEMORY=2000kb | ||
ENV EVICTION_POLICY=noeviction | ||
ENV EVICTION_SAMPLE=20 | ||
ENV EVICTION_INTERVAL=100ms | ||
# List of echovault cert/key pairs | ||
ENV CERT_KEY_PAIR_1=/etc/ssl/certs/echovault/echovault/server1.crt,/etc/ssl/certs/echovault/echovault/server1.key | ||
ENV CERT_KEY_PAIR_2=/etc/ssl/certs/echovault/echovault/server2.crt,/etc/ssl/certs/echovault/echovault/server2.key | ||
# List of client certificate authorities | ||
ENV CLIENT_CA_1=/etc/ssl/certs/echovault/client/rootCA.crt | ||
|
||
ENTRYPOINT ["EchoVault"] | ||
FROM --platform=linux/amd64 alpine:latest AS server | ||
RUN mkdir -p /usr/echovault/bin | ||
COPY --from=build /build/bin/server /usr/echovault/bin | ||
WORKDIR /usr/echovault/bin | ||
ENTRYPOINT ["./server"] |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.