File tree Expand file tree Collapse file tree 6 files changed +45
-47
lines changed Expand file tree Collapse file tree 6 files changed +45
-47
lines changed Original file line number Diff line number Diff line change 1616# Compile
1717FROM rust:1.63-alpine AS compiler
1818
19- RUN apk add -q --update-cache --no-cache build-base openssl-dev
20-
21- # Create appuser
22- ENV USER=parseable
23- ENV UID=10001
24-
25- RUN adduser \
26- --disabled-password \
27- --gecos "" \
28- --home "/nonexistent" \
29- --shell "/sbin/nologin" \
30- --no-create-home \
31- --uid "${UID}" \
32- "${USER}"
33-
3419WORKDIR /parseable
3520
3621COPY . .
@@ -43,24 +28,31 @@ RUN set -eux; \
4328 cargo build --release
4429
4530# Run
46- FROM alpine:3.14
31+ FROM alpine:3.16
4732
4833RUN apk update --quiet \
49- && apk add -q --no-cache libgcc curl
34+ && apk add -q --no-cache tini
5035
51- # add parseable to the `/bin` so you can run it from anywhere and it's easy
52- # to find.
53- COPY --from=compiler /etc/passwd /etc/passwd
54- COPY --from=compiler /etc/group /etc/group
36+ # Create appuser
37+ ENV USER=parseable
38+ ENV UID=10001
39+
40+ RUN adduser \
41+ --disabled-password \
42+ --gecos "" \
43+ --home "/nonexistent" \
44+ --shell "/sbin/nologin" \
45+ --no-create-home \
46+ --uid "${UID}" \
47+ "${USER}"
5548
56- # This directory should hold all the data related to parseable so we're going
57- # to move our PWD in there.
5849WORKDIR /parseable
5950
6051COPY --from=compiler /parseable/target/release/parseable /bin/parseable
6152
6253USER parseable:parseable
6354
6455EXPOSE 8000/tcp
56+ ENTRYPOINT ["tini" , "--" ]
6557
66- CMD [ " /bin/parseable" ]
58+ CMD /bin/parseable
Original file line number Diff line number Diff line change 1313# You should have received a copy of the GNU Affero General Public License
1414# along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
16- FROM alpine:3.14
16+ FROM alpine:3.16
17+
18+ RUN apk update --quiet && \
19+ apk add -q --no-cache tini
1720
18- RUN apk update --quiet \
19- && apk add -q --no-cache libgcc curl
20-
2121# Create appuser
2222ENV USER=parseable
2323ENV UID=10001
@@ -43,4 +43,5 @@ USER parseable:parseable
4343
4444EXPOSE 8000/tcp
4545
46- CMD ["/bin/parseable"]
46+ ENTRYPOINT ["tini", "--"]
47+ CMD /bin/parseable
Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ docker run \
6565 -p 8000:8000 \
6666 --env-file parseable-env \
6767 -v /tmp/data:/data \
68- parseable/parseable:latest
68+ parseable/parseable:latest \
69+ parseable server
6970```
7071
7172### Kubernetes
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ apiVersion: v2
22name : parseable
33description : Helm chart for Parseable Server
44type : application
5- version : 0.0.2
6- AppVersion : " v0.0.2 "
5+ version : 0.0.5
6+ AppVersion : " v0.0.5 "
Original file line number Diff line number Diff line change 3131 {{- toYaml .Values.parseable.securityContext | nindent 12 }}
3232 image : " {{ .Values.parseable.image.repository }}:{{ .Values.parseable.image.tag | default .Chart.AppVersion }}"
3333 imagePullPolicy : {{ .Values.parseable.image.pullPolicy }}
34+ {{- if .Values.parseable.demo }}
35+ args : ["parseable", "server", "--demo"]
36+ {{- else }}
37+ args : ["parseable", "server"]
38+ {{- end }}
3439 env :
3540 {{- range $key, $value := .Values.parseable.env }}
3641 - name : {{ $key }}
Original file line number Diff line number Diff line change @@ -2,25 +2,24 @@ parseable:
22 replicaCount : 1
33 image :
44 repository : parseable/parseable
5- tag : v0.0.2
5+ tag : v0.0.5
66 pullPolicy : IfNotPresent
77 demo : true
88 env :
9- P_ADDR : " 0.0.0.0:8000"
10- P_TLS_CERT_PATH : " "
11- P_LOCAL_STORAGE : " data"
12- P_STORAGE_UPLOAD_INTERVAL : " 60"
139 RUST_LOG : " parseable=info"
14- # By default parseable uses demo environment.
15- # Please change this before running in production.
16- P_S3_URL : " "
17- P_S3_ACCESS_KEY : " "
18- P_S3_SECRET_KEY : " "
19- P_S3_REGION : " "
20- P_S3_BUCKET : " "
21- P_LOCAL_STORAGE : " "
22- P_USERNAME : " "
23- P_PASSWORD : " "
10+ # P_ADDR: "0.0.0.0:8000"
11+ # P_TLS_CERT_PATH: ""
12+ # P_TLS_KEY_PATH: ""
13+ # P_LOCAL_STORAGE: "data"
14+ # P_STORAGE_UPLOAD_INTERVAL: "60"
15+ # P_S3_URL: ""
16+ # P_S3_ACCESS_KEY: ""
17+ # P_S3_SECRET_KEY: ""
18+ # P_S3_REGION: ""
19+ # P_S3_BUCKET: ""
20+ # P_LOCAL_STORAGE: ""
21+ # P_USERNAME: ""
22+ # P_PASSWORD: ""
2423 nameOverride : " "
2524 fullnameOverride : " "
2625 serviceAccount :
You can’t perform that action at this time.
0 commit comments