Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit e03eed1

Browse files
committed
Merge branch 'master' into expose
2 parents c5e82ab + 5cb3ab8 commit e03eed1

File tree

328 files changed

+79143
-6220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+79143
-6220
lines changed

Dockerfile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
FROM golang:1.5.1
1+
FROM golang:1.6
2+
3+
ENV DOCKER_VERSION 1.12.1
24

35
# Copy latest docker client(s)
4-
COPY ./docker/docker-1.9.1 /bin/docker-1.9.1
5-
RUN chmod +x /bin/docker-*
6+
RUN curl -sSL -o docker.tgz https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz &&\
7+
tar -xvf docker.tgz --strip-components=1 -C /bin && rm docker.tgz &&\
8+
chmod +x /bin/docker-* &&\
9+
ln -s /bin/docker /bin/docker-${DOCKER_VERSION}
610

711
# Copy Go code and install applications
8-
COPY ./go /go
9-
RUN cd /go/src/goproxy; go install
10-
RUN cd /go/src/gosetup; go install
12+
WORKDIR /go/src/github.com/docker/dockercraft
13+
COPY . .
14+
RUN go install
1115

1216
# Download Cuberite server (Minecraft C++ server)
1317
# and load up a special empty world for Dockercraft
1418
WORKDIR /srv
1519
RUN sh -c "$(wget -qO - https://raw.githubusercontent.com/cuberite/cuberite/master/easyinstall.sh)" && mv Server cuberite_server
20+
RUN ln -s /srv/cuberite_server/Cuberite /usr/bin/cuberite
1621
COPY ./world world
1722
COPY ./docs/img/logo64x64.png logo.png
1823

1924
COPY ./start.sh start.sh
20-
CMD ["/bin/bash","/srv/start.sh"]
25+
CMD ["/bin/sh", "/srv/start.sh"]
2126
EXPOSE 25565

Makefile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.PHONY: all test test-local install-deps lint fmt vet build serve
2+
3+
REPO_NAME = dockercraft
4+
REPO_OWNER = docker
5+
PKG_NAME = github.com/${REPO_OWNER}/${REPO_NAME}
6+
IMAGE = golang:1.6
7+
IMAGE_NAME = dockercraft-dev
8+
CONTAINER_NAME = dockercraft-dev-container
9+
10+
all: test
11+
12+
test-local: install-deps fmt lint vet
13+
@echo "+ $@"
14+
@go test -v .
15+
16+
test:
17+
@docker run -v ${shell pwd}:/go/src/${PKG_NAME} -w /go/src/${PKG_NAME} ${IMAGE} make test-local
18+
19+
install-deps:
20+
@echo "+ $@"
21+
@go get -u github.com/golang/lint/golint
22+
23+
lint:
24+
@echo "+ $@"
25+
@test -z "$$(golint ./... | grep -v vendor/ | tee /dev/stderr)"
26+
27+
fmt:
28+
@echo "+ $@"
29+
@test -z "$$(gofmt -s -l . | grep -v vendor/ | tee /dev/stderr)"
30+
31+
vet:
32+
@echo "+ $@"
33+
@go vet .
34+
35+
build:
36+
@echo "+ $@"
37+
@docker build -t ${IMAGE_NAME} .
38+
39+
serve:
40+
@docker run -it --rm \
41+
--name ${CONTAINER_NAME} \
42+
-p 25565:25565 \
43+
-v /var/run/docker.sock:/var/run/docker.sock \
44+
${IMAGE_NAME}

circle.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
machine:
3+
services:
4+
- docker
5+
6+
dependencies:
7+
override:
8+
- echo "Nothing to see here.."
9+
10+
test:
11+
override:
12+
- make test

docker/docker-1.9.1

-28.8 MB
Binary file not shown.

go/src/github.com/Sirupsen/logrus/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

go/src/github.com/Sirupsen/logrus/.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

go/src/github.com/Sirupsen/logrus/CHANGELOG.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)