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 16
16
# Compile
17
17
FROM rust:1.63-alpine AS compiler
18
18
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
-
34
19
WORKDIR /parseable
35
20
36
21
COPY . .
@@ -43,24 +28,31 @@ RUN set -eux; \
43
28
cargo build --release
44
29
45
30
# Run
46
- FROM alpine:3.14
31
+ FROM alpine:3.16
47
32
48
33
RUN apk update --quiet \
49
- && apk add -q --no-cache libgcc curl
34
+ && apk add -q --no-cache tini
50
35
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}"
55
48
56
- # This directory should hold all the data related to parseable so we're going
57
- # to move our PWD in there.
58
49
WORKDIR /parseable
59
50
60
51
COPY --from=compiler /parseable/target/release/parseable /bin/parseable
61
52
62
53
USER parseable:parseable
63
54
64
55
EXPOSE 8000/tcp
56
+ ENTRYPOINT ["tini" , "--" ]
65
57
66
- CMD [ " /bin/parseable" ]
58
+ CMD /bin/parseable
Original file line number Diff line number Diff line change 13
13
# You should have received a copy of the GNU Affero General Public License
14
14
# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
16
- FROM alpine:3.14
16
+ FROM alpine:3.16
17
+
18
+ RUN apk update --quiet && \
19
+ apk add -q --no-cache tini
17
20
18
- RUN apk update --quiet \
19
- && apk add -q --no-cache libgcc curl
20
-
21
21
# Create appuser
22
22
ENV USER=parseable
23
23
ENV UID=10001
@@ -43,4 +43,5 @@ USER parseable:parseable
43
43
44
44
EXPOSE 8000/tcp
45
45
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 \
65
65
-p 8000:8000 \
66
66
--env-file parseable-env \
67
67
-v /tmp/data:/data \
68
- parseable/parseable:latest
68
+ parseable/parseable:latest \
69
+ parseable server
69
70
```
70
71
71
72
### Kubernetes
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ apiVersion: v2
2
2
name : parseable
3
3
description : Helm chart for Parseable Server
4
4
type : 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 31
31
{{- toYaml .Values.parseable.securityContext | nindent 12 }}
32
32
image : " {{ .Values.parseable.image.repository }}:{{ .Values.parseable.image.tag | default .Chart.AppVersion }}"
33
33
imagePullPolicy : {{ .Values.parseable.image.pullPolicy }}
34
+ {{- if .Values.parseable.demo }}
35
+ args : ["parseable", "server", "--demo"]
36
+ {{- else }}
37
+ args : ["parseable", "server"]
38
+ {{- end }}
34
39
env :
35
40
{{- range $key, $value := .Values.parseable.env }}
36
41
- name : {{ $key }}
Original file line number Diff line number Diff line change @@ -2,25 +2,24 @@ parseable:
2
2
replicaCount : 1
3
3
image :
4
4
repository : parseable/parseable
5
- tag : v0.0.2
5
+ tag : v0.0.5
6
6
pullPolicy : IfNotPresent
7
7
demo : true
8
8
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"
13
9
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: ""
24
23
nameOverride : " "
25
24
fullnameOverride : " "
26
25
serviceAccount :
You can’t perform that action at this time.
0 commit comments