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

Conversation

@luludotdev
Copy link
Contributor

@luludotdev luludotdev commented Oct 10, 2017

Docker Image

Until this gets merged into the main repo, my changes will be available on my own docker account.
docker pull lolpants/dockercraft

Changes

I've made a few changes and bugfixes, have a read.

Download URL

The Docker download URL changed causing the Go server to fail on download.
This updates for the new URL and also adds root CA certs for the Debian intermediary container to allow the new download to succeed.

Web Admin

This was added but I reverted it due to potential security risks. Might revisit it at some point.

Authentication

By default the Cuberite server doesn't care if you're logged in. This can be a problem if you want to use a whitelist. I've turned that on. (Also makes player skins work)

Dependencies

Both Cuberite and Go were out of date. They're now on the latest versions at time of writing. They've both been tested and work. This means you can now login to Dockercraft from Minecraft versions 1.8 to 1.12.

New Containers

Starting a new container will cause all other containers within Dockercraft to disappear. They're still running, but they don't exist in the world until they're updated. Using a hack this forces all containers to re-render when this happens and fixes that issue.

@luludotdev luludotdev changed the title Fix for new download URL Fix all the things Oct 15, 2017
ARG DOCKER_VERSION=17.04.0-ce
RUN wget -qO- https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz | \
ARG DOCKER_VERSION=17.09.0-ce
RUN wget -qO- https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz | \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could even skip this entire build-stage; the COPY --from syntax also allows copying from an image. The following would pulls the official docker:17.09 image, and copy the CLI binary from that;

COPY --from=docker:17.09 /usr/local/bin/docker /bin


const (
downloadURL = "https://get.docker.com/builds/Linux/x86_64/docker-"
downloadURL = "https://download.docker.com/linux/static/stable/x86_64/docker-"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also wondering if the whole version-compare in GetDockerBinary() should still be there; versions older than Docker-CE 17.09 have reached EOL, so perhaps it should be simplified to remove that code.

@scoobyshi
Copy link

Would also love to see this PR merged, and confirm it resolves issues running Dockercraft on MacOS as well.

@dave-tucker
Copy link
Contributor

LGTM. Thanks for the contribution @lolPants

@dave-tucker dave-tucker merged commit 4be6b59 into docker-archive-public:master Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants