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: '3' | |
volumes: | |
godev: | |
services: | |
godev: | |
build: | |
context: . | |
ports: | |
- 8081:8081 | |
volumes: |
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 golang:1.14.3-buster | |
WORKDIR /app | |
RUN go get github.com/cespare/reflex | |
COPY docker-entrypoint.sh /docker-entrypoint.sh | |
RUN sed -i 's/\r//' /docker-entrypoint.sh |
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
echo "Running docker-entrypoint.sh" | |
reflex -r '\.go$' -s -- sh -c 'echo "Running development server" && go mod tidy && go run main.go' |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func main() { | |
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprintf(w, "Livemounted %s\n", "Version One") |
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
name: Minecraft Config CI/CD | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
deploy: |
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
daemon=300 | |
ssl=yes | |
pid=/var/run/ddc | |
protocol=dyndns2 | |
use=web, web=ipinfo.io/ip | |
server=domains.google.com | |
login=yourlogin | |
password='yourpassword' | |
minecraft.example.gg |
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
[ | |
{ | |
"ignoresPlayerLimit": false, | |
"name": "AUser", | |
"uuid": "erf895cc-9x7v-7da5-fasd–asgaasqwe2214" | |
} | |
] |
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
[Unit] | |
Description=Minecraft Server | |
After=network.target | |
[Service] | |
User=minecraft | |
Group=minecraft | |
Type=Simple |
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/sh | |
case $1 in | |
dev) | |
yarn | |
echo "Running development server on 0.0.0.0:3000.." | |
yarn start | |
;; | |
test) | |
echo "Running tests.." |
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 node:lts-alpine | |
ENV HOST 0.0.0.0 | |
WORKDIR /app | |
COPY package.json /app | |
COPY docker-entrypoint.sh /docker-entrypoint.sh | |
RUN chmod +x /docker-entrypoint.sh | |
ENTRYPOINT ["docker-entrypoint.sh", "dev"] |