Last active
September 24, 2022 15:55
-
-
Save bobmoff/8d5e1fc1e47b71bf33e53a2e55a62aff to your computer and use it in GitHub Desktop.
Running Unity headless unix build in Docker container on Docker Cloud
This file contains hidden or 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 contains hidden or 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/CocktailCruise/server | |
docker build -t bobmoff/cocktail-server -f Dockerfile-dev . | |
docker-compose up |
This file contains hidden or 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 | |
echo "Building ..." | |
docker build -t bobmoff/cocktail-server -f Dockerfile-prod . | |
echo "Pushing .." | |
docker push bobmoff/cocktail-server | |
# echo "Deploying .." | |
curl -X POST https://cloud.docker.com/api/app/v1/service/xxxxxxxxxxxxxxxxxxxxxx | |
echo "Done!" |
This file contains hidden or 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/cocktail-server | |
ports: | |
- "7777:7777" | |
- "7777:7777/udp" | |
volumes: | |
- ./shared:/shared |
This file contains hidden or 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 [email protected] | |
EXPOSE 7777 | |
VOLUME /shared | |
WORKDIR /shared | |
CMD ./cocktailserver.x86_64 -logfile output.log & touch output.log ; tail -f output.log |
This file contains hidden or 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 [email protected] | |
EXPOSE 7777 | |
COPY ./shared /shared | |
WORKDIR /shared | |
CMD ./cocktailserver.x86_64 -logfile output.log & \ | |
tail -f output.log |
This file contains hidden or 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: | |
image: bobmoff/cocktail-server | |
ports: | |
- "7777:7777" | |
- "7777:7777/udp" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment