Граф коммитов

17 Коммитов

Автор SHA1 Сообщение Дата
Michael Berlin b3c3604c3b Re-add "Dockerfile" for base image in the root of our repository.
I've moved the "base" image Dockerfiles from the root to "/docker/base/" in https://github.com/youtube/vitess/pull/2769. This broke the automated build on Docker Hub because now it assumes "/docker/base" as build context and not "/" anymore. But "/" as build context is required to run "make build" and access the source code.

Therefore, I'm re-adding "Dockerfile" as symlink pointing to "docker/base/Dockerfile".

I'm also deleting "docker/base/README.md" again because I only added it for the automated build (it must be in the same directory as the "Dockerfile"). With the switch back to "/" as build context, it will use "/README.md" instead.
2017-04-14 15:18:09 -07:00
Michael Berlin 3b17529bef docker: Move Dockerfile files for "base" image from the root of the repository to docker/base.
This unifies the locations of most of our Docker configurations and reduces complexity.

In the past, we probably had to put the Dockerfile for the "base" image in the root for the automated build feature of Docker Hub. But now they support custom paths for the Dockerfile and we should no longer have to do this.

Since the automated build looks for a README.md in the same file as the Dockerfile I created a new one in docker/base/. For the most part it is copied from the root directory, but I removed the badges at the top and the reference to Gitter.

Additionally, I've created docker/README.md which lists our different Docker images and describes how they are used in detail.
2017-04-13 09:47:31 -07:00
Anthony Yeh 4170be37ce Add Docker images for MySQL 5.7. 2016-05-20 17:59:37 -07:00
Anthony Yeh 6022a6e8c5 docker: Keep vitess tree from bootstrap.
This is needed so we don't clobber the new vendor directory.

We used to need to clear the tree from bootstrap, because otherwise
files that had been deleted since the last bootstrap image was built
would remain. However, we now only copy a minimal set of files into the
bootstrap image (just enough to run bootstrap.sh), so this is no longer
a concern for ordinary source files.
2016-04-15 11:13:51 -07:00
Anthony Yeh c24dc79977 docker: Switch default flavor to mysql56. 2015-11-02 17:11:28 -08:00
Anthony Yeh 55621d51d7 Remove old files when building Docker image.
Otherwise files that were renamed or removed since the last bootstrap
image was built will reappear and break the build.
2015-04-24 00:58:04 -07:00
Anthony Yeh 89cb8a5a01 Split off bootstrap into separate Docker image.
This makes it faster to use Docker images to test new changes, as
suggested in #492.

Since we don't need to re-bootstrap for every push to master, this also
makes our automated builds faster and more reliable (they often fail due
to network lag when installing dependencies with apt-get).

Lastly, this will make it easier to swap out bootstrap images built for
different flavors, such as MariaDB 10.0 vs MySQL 5.6.
2015-04-20 15:09:26 -07:00
Anthony Yeh d314b6ba09 Merge pull request #491 from netroby/feature/vol-vtdataroot
Add VOLUME for vtdataroot
2015-03-16 11:32:35 -07:00
ZhiFeng Hu 9cfa71806f Add VOLUME for vtdataroot 2015-03-14 11:01:47 +08:00
ZhiFeng Hu d095dd4423 Fix noninteractive error when docker building 2015-03-14 10:47:03 +08:00
Alain Jobart f49f9a037f Speeding up travis and docker, no need to get protoc as it's not used
for building. Also properly parsing the command line flag
in bootstrap.sh.

Should reduce te nuber of times we build proto from 4x to 1x, and
grpc from 2x to 1x. Doh.
2015-03-13 12:09:08 -07:00
Alain Jobart 9e3caff5cf Fixing the scripts to build grpc and protobuf better.
Docker and travis: build and install as root in /
2015-03-12 09:06:23 -07:00
Alain Jobart 8328ffb884 Reverting protobuf install to 3.0.0-alpha-1 to be compatible
with the one grpc installs. Adding a couple extra libraries
so later on we can switch to using them.
2015-03-11 15:49:33 -07:00
Alain Jobart 196270f0a8 Now using go 1.4 in Dockerfile. 2015-03-11 07:06:34 -07:00
Anthony Yeh d47c07eb24 Fix Docker build dependency.
The new bootstrap step for protobuf v3 needs the unzip command.
2015-03-04 20:55:37 -08:00
Anthony Yeh c5ca2cb2f0 Pin our docker image on wheezy.
The golang image we base on has moved on to jessie, which breaks our
build.
2014-10-17 22:11:48 -07:00
Anthony Yeh e556556902 First pass at Docker support. 2014-10-03 21:27:26 -07:00