Skip to content

Commit

Permalink
SDK done. Worked great. Going to do the rest and test.
Browse files Browse the repository at this point in the history
Everyting is working except for extensions!
We have an installation!

Work on googleforgames#909
  • Loading branch information
markmandel committed Jul 17, 2023
1 parent c7b4290 commit 48935d3
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 41 deletions.
14 changes: 7 additions & 7 deletions cmd/allocator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine:3.14
FROM gcr.io/distroless/static-debian11:nonroot

ARG ARCH=amd64
RUN apk --update add ca-certificates && \
adduser -D -u 1000 agones
WORKDIR /

COPY --chown=agones:agones ./bin/allocator.linux.$ARCH /home/agones/allocator
COPY --chown=agones:agones ./bin/LICENSES ./bin/dependencies-src.tgz /home/agones/
COPY ./bin/allocator.linux.$ARCH /allocator
COPY ./bin/LICENSES .
COPY ./bin/dependencies-src.tgz .

USER 1000
ENTRYPOINT ["/home/agones/allocator"]
USER nonroot:nonroot
ENTRYPOINT ["/allocator"]
14 changes: 7 additions & 7 deletions cmd/controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine:3.14
FROM gcr.io/distroless/static-debian11:nonroot

ARG ARCH=amd64
RUN apk --update add ca-certificates && \
adduser -D -u 1000 agones
WORKDIR /

COPY --chown=agones:agones ./bin/controller.linux.$ARCH /home/agones/controller
COPY --chown=agones:agones ./bin/LICENSES ./bin/dependencies-src.tgz /home/agones/
COPY ./bin/controller.linux.$ARCH /controller
COPY ./bin/LICENSES .
COPY ./bin/dependencies-src.tgz .

USER 1000
ENTRYPOINT ["/home/agones/controller"]
USER nonroot:nonroot
ENTRYPOINT ["/controller"]
14 changes: 7 additions & 7 deletions cmd/extensions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine:3.14
FROM gcr.io/distroless/static-debian11:nonroot

ARG ARCH=amd64
RUN apk --update add ca-certificates && \
adduser -D -u 1000 agones
WORKDIR /

COPY --chown=agones:agones ./bin/extensions.linux.$ARCH /home/agones/extensions
COPY --chown=agones:agones ./bin/LICENSES ./bin/dependencies-src.tgz /home/agones/
COPY ./bin/extensions.linux.$ARCH /extensions
COPY ./bin/LICENSES .
COPY ./bin/dependencies-src.tgz .

USER 1000
ENTRYPOINT ["/home/agones/extensions"]
USER nonroot:nonroot
ENTRYPOINT ["/extensions"]
14 changes: 7 additions & 7 deletions cmd/ping/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine:3.14
FROM gcr.io/distroless/static-debian11:nonroot

ARG ARCH=amd64
RUN apk --update add ca-certificates && \
adduser -D -u 1000 agones
WORKDIR /

COPY --chown=agones:agones ./bin/ping.linux.$ARCH /home/agones/ping
COPY --chown=agones:agones ./bin/LICENSES ./bin/dependencies-src.tgz /home/agones/
COPY ./bin/ping.linux.$ARCH /ping
COPY ./bin/LICENSES .
COPY ./bin/dependencies-src.tgz .

USER 1000
ENTRYPOINT ["/home/agones/ping"]
USER nonroot:nonroot
ENTRYPOINT ["/ping"]
15 changes: 8 additions & 7 deletions cmd/sdk-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine:3.14
FROM gcr.io/distroless/static-debian11:nonroot

ARG ARCH=amd64
RUN apk --update add ca-certificates && \
adduser -D -u 1000 agones
WORKDIR /

COPY --chown=agones:agones ./bin/sdk-server.linux.$ARCH /home/agones/sdk-server
COPY --chown=agones:agones ./bin/LICENSES ./bin/dependencies-src.tgz /home/agones/
COPY ./bin/sdk-server.linux.$ARCH /sdk-server
COPY ./bin/LICENSES .
COPY ./bin/dependencies-src.tgz .

USER 1000
ENTRYPOINT ["/home/agones/sdk-server"]
USER nonroot:nonroot
ENTRYPOINT ["/sdk-server"]
6 changes: 3 additions & 3 deletions install/helm/agones/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ spec:
value: {{ .Values.agones.cloudProduct | quote }}
{{- if .Values.agones.controller.persistentLogs }}
- name: LOG_DIR
value: "/home/agones/logs"
value: "/logs"
- name: LOG_SIZE_LIMIT_MB
value: {{ .Values.agones.controller.persistentLogsSizeLimitMB | quote }}
{{- end }}
Expand Down Expand Up @@ -190,11 +190,11 @@ spec:
{{- end }}
volumeMounts:
- name: certs
mountPath: /home/agones/certs
mountPath: /certs
readOnly: true
{{- if .Values.agones.controller.persistentLogs }}
- name: logs
mountPath: /home/agones/logs
mountPath: /logs
readOnly: false
{{- end }}
volumes:
Expand Down
6 changes: 3 additions & 3 deletions install/helm/agones/templates/extensions-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ spec:
value: {{ .Values.agones.cloudProduct | quote }}
{{- if .Values.agones.extensions.persistentLogs }}
- name: LOG_DIR
value: "/home/agones/logs"
value: "/logs"
- name: LOG_SIZE_LIMIT_MB
value: {{ .Values.agones.extensions.persistentLogsSizeLimitMB | quote }}
{{- end }}
Expand Down Expand Up @@ -167,11 +167,11 @@ spec:
{{- end }}
volumeMounts:
- name: certs
mountPath: /home/agones/certs
mountPath: /certs
readOnly: true
{{- if .Values.agones.extensions.persistentLogs }}
- name: logs
mountPath: /home/agones/logs
mountPath: /logs
readOnly: false
{{- end }}
volumes:
Expand Down

0 comments on commit 48935d3

Please sign in to comment.