Last active
June 27, 2017 00:24
-
-
Save bobmoff/49f5ecee8a63ffd790bff9d9b0527922 to your computer and use it in GitHub Desktop.
Unity 3D Linux Standalone Build running in Docker (Development and Production)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file exists only to make up the name of the gist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd "/Users/bobmoff/Projects/Lazer League/server" | |
docker build -t bobmoff/lazerleague-server -f Dockerfile-dev . | |
docker-compose up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker build -t bobmoff/lazerleague-server -f Dockerfile-prod . | |
docker push bobmoff/lazerleague-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
server: | |
image: bobmoff/lazerleague-server | |
ports: | |
- "7777:7777" | |
- "7777:7777/udp" | |
volumes: | |
- ./shared:/shared |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
autoredeploy: true | |
image: 'bobmoff/lazerleague-server:latest' | |
ports: | |
- '7777:7777' | |
- '7777:7777/udp' | |
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
MAINTAINER Fille Åström fille@imgnry.com | |
EXPOSE 7777 | |
VOLUME /shared | |
WORKDIR /shared | |
CMD sleep 1 & ./lazerleague-server.x86_64 -logfile output.log & touch output.log & tail -f output.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
MAINTAINER Fille Åström fille@imgnry.com | |
EXPOSE 7777 | |
COPY ./shared /shared | |
WORKDIR /shared | |
CMD sleep 1 & ./lazerleague-server.x86_64 -logfile output.log & touch output.log & tail -f output.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment