Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit 453e92a

Browse files
committed
Use backports for libsodium
1 parent c7ea3a3 commit 453e92a

File tree

3 files changed

+30
-22
lines changed

3 files changed

+30
-22
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ browser/chrome/chrome.zip
77
output/
88
netcode.io.wininstall/package.zip
99
*.user
10+
netcode.io.demoserver/.kube/

netcode.io.demoserver/Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ WORKDIR /srv
33
EXPOSE 8080
44
EXPOSE 40000/udp
55
ENTRYPOINT ["/srv-run.sh"]
6-
RUN apt-get update && apt-get install -y libsodium13 bash dos2unix && ldconfig && ln -s /usr/lib/x86_64-linux-gnu/libsodium.so.13 /srv/libsodium.so.18
6+
RUN echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list && \
7+
apt-get update && \
8+
apt-get install -y libsodium18 bash dos2unix && \
9+
ldconfig
710
ADD bin/Release /srv
811
ADD srv-run.sh /srv-run.sh
9-
RUN cp /srv/libnetcode64.so /srv/libnetcode.so && dos2unix /srv-run.sh && chmod a+x /srv-run.sh && chown -Rv 33:33 /srv && chown -Rv 33:33 /srv-run.sh
12+
RUN cp /srv/libnetcode64.so /srv/libnetcode.so && \
13+
dos2unix /srv-run.sh && \
14+
chmod a+x /srv-run.sh && \
15+
chown -Rv 33:33 /srv && \
16+
chown -Rv 33:33 /srv-run.sh
1017
USER 33:33

netcode.io.demoserver/kubernetes.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ spec:
1616
spec:
1717
nodeSelector:
1818
cloud.google.com/gke-nodepool: high-availability-pool
19-
securityContext:
20-
runAsNonRoot: true
19+
#securityContext:
20+
# runAsNonRoot: true
2121
automountServiceAccountToken: false
2222
containers:
2323
- name: netcode-io-demo-server-http
2424
image: redpointgames/netcode-demo-server:latest
25-
args: [ "--non-interactive", "--listen-address", "0.0.0.0", "--server-address", "104.198.44.162" ]
25+
args: [ "--non-interactive", "--server-address", "104.198.44.162", "--http-address", "+" ]
2626
imagePullPolicy: Always
27-
securityContext:
28-
runAsNonRoot: true
29-
runAsUser: 33
30-
readOnlyRootFilesystem: true
31-
capabilities:
32-
drop:
33-
- ALL
27+
#securityContext:
28+
# runAsNonRoot: true
29+
# runAsUser: 33
30+
# readOnlyRootFilesystem: true
31+
# capabilities:
32+
# drop:
33+
# - ALL
3434
resources:
3535
requests:
3636
cpu: 0m
@@ -66,22 +66,22 @@ spec:
6666
spec:
6767
nodeSelector:
6868
cloud.google.com/gke-nodepool: high-availability-pool
69-
securityContext:
70-
runAsNonRoot: true
69+
#securityContext:
70+
# runAsNonRoot: true
7171
automountServiceAccountToken: false
7272
hostNetwork: true
7373
containers:
7474
- name: netcode-io-demo-server-udp
7575
image: redpointgames/netcode-demo-server:latest
76-
args: [ "--non-interactive", "--listen-address", "0.0.0.0", "--server-address", "104.198.44.162" ]
76+
args: [ "--non-interactive", "--server-address", "104.198.44.162", "--http-address", "+" ]
7777
imagePullPolicy: Always
78-
securityContext:
79-
runAsNonRoot: true
80-
runAsUser: 33
81-
readOnlyRootFilesystem: true
82-
capabilities:
83-
drop:
84-
- ALL
78+
#securityContext:
79+
# runAsNonRoot: true
80+
# runAsUser: 33
81+
# readOnlyRootFilesystem: true
82+
# capabilities:
83+
# drop:
84+
# - ALL
8585
resources:
8686
requests:
8787
cpu: 0m

0 commit comments

Comments
 (0)