Skip to content

Commit

Permalink
New Init Container (#3)
Browse files Browse the repository at this point in the history
- New aerospike kubernetes utility
- Better container lifecycle events handling
- TLS support
- Improved security implementation


- Removed peer finder submodule
  • Loading branch information
spkesan authored Jan 11, 2021
1 parent ab30b4f commit 731920e
Show file tree
Hide file tree
Showing 19 changed files with 3,012 additions and 542 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode/
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

30 changes: 16 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,26 @@
# Aerospike Kubernetes' Init Container Image
#

FROM golang:buster AS peer_finder_builder
FROM golang:buster AS builder

COPY ./peer-finder/peer-finder.go /builder/peer-finder.go
WORKDIR /builder
RUN go get -d ./... \
&& go build -o peer-finder . \
&& cp peer-finder /peer-finder
ADD . $GOPATH/src/github.com/aerospike/aerospike-kubernetes-init/

WORKDIR $GOPATH/src/github.com/aerospike/aerospike-kubernetes-init/

RUN go build -o init . \
&& cp init /init

WORKDIR $GOPATH/src/github.com/aerospike/aerospike-kubernetes-init/aerospike-utility/

RUN go build -o aku-adm . \
&& cp aku-adm /aku-adm

FROM debian:buster-slim

COPY install.sh /install.sh
COPY on-start.sh /on-start.sh
COPY --from=peer_finder_builder /peer-finder /peer-finder
COPY aerospike.sh /aerospike.sh
COPY --from=builder /init /init
COPY --from=builder /aku-adm /aku-adm

RUN chmod +x /install.sh /on-start.sh /peer-finder /aerospike.sh \
&& apt update -y \
&& apt install curl jq -y
RUN chmod +x /init /aku-adm

ENTRYPOINT [ "/install.sh" ]
ENTRYPOINT [ "/init" ]
CMD ["--log-level", "debug"]
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ git clone https://github.com/aerospike/aerospike-kubernetes-init.git
cd aerospike-kubernetes-init
```

2. Pull Submodules,
```
git submodule update --init
```

3. Build docker image,
2. Build docker image,
```
docker build . -t aerospike/aerospike-kubernetes-init
```
Loading

0 comments on commit 731920e

Please sign in to comment.