Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm/docker: fix Docker builds + tag 7.0.2 #6773

Merged
merged 1 commit into from
Oct 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/k8s/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG VT_BASE_VER
ARG VT_BASE_VER=latest

FROM vitess/base:${VT_BASE_VER} AS base

Expand Down
2 changes: 1 addition & 1 deletion docker/k8s/mysqlctld/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG VT_BASE_VER
ARG VT_BASE_VER=latest

FROM vitess/k8s:${VT_BASE_VER} AS k8s

Expand Down
5 changes: 2 additions & 3 deletions docker/k8s/orchestrator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG VT_BASE_VER
ARG ORC_VER

ARG VT_BASE_VER=latest
FROM vitess/k8s:${VT_BASE_VER} AS k8s

FROM debian:buster-slim
ARG ORC_VER='3.2.3'

RUN apt-get update && \
apt-get upgrade -qq && \
Expand Down
5 changes: 2 additions & 3 deletions docker/k8s/pmm-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG VT_BASE_VER
ARG PMM_CLIENT_VER

ARG VT_BASE_VER=latest
FROM vitess/k8s:${VT_BASE_VER} AS k8s

FROM debian:buster-slim
ARG PMM_CLIENT_VER='1.17.4'

RUN apt-get update && \
apt-get upgrade -qq && \
Expand Down
2 changes: 1 addition & 1 deletion docker/k8s/vtbackup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG VT_BASE_VER
ARG VT_BASE_VER=latest

FROM vitess/k8s:${VT_BASE_VER} AS k8s

Expand Down
2 changes: 1 addition & 1 deletion docker/k8s/vtctl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG VT_BASE_VER
ARG VT_BASE_VER=latest

FROM vitess/k8s:${VT_BASE_VER} AS k8s

Expand Down
2 changes: 1 addition & 1 deletion docker/k8s/vtctlclient/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG VT_BASE_VER
ARG VT_BASE_VER=latest

FROM vitess/k8s:${VT_BASE_VER} AS k8s

Expand Down
2 changes: 1 addition & 1 deletion docker/k8s/vtctld/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG VT_BASE_VER
ARG VT_BASE_VER=latest

FROM vitess/k8s:${VT_BASE_VER} AS k8s

Expand Down
2 changes: 1 addition & 1 deletion docker/k8s/vtgate/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG VT_BASE_VER
ARG VT_BASE_VER=latest

FROM vitess/k8s:${VT_BASE_VER} AS k8s

Expand Down
2 changes: 1 addition & 1 deletion docker/k8s/vttablet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG VT_BASE_VER
ARG VT_BASE_VER=latest

FROM vitess/k8s:${VT_BASE_VER} AS k8s

Expand Down
2 changes: 1 addition & 1 deletion docker/k8s/vtworker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG VT_BASE_VER
ARG VT_BASE_VER=latest

FROM vitess/k8s:${VT_BASE_VER} AS k8s

Expand Down
33 changes: 29 additions & 4 deletions helm/release.sh
Original file line number Diff line number Diff line change
@@ -1,43 +1,68 @@
#!/bin/bash
set -ex

vt_base_version=v7.0.1
orchestrator_version=3.2.3
pmm_client_version=1.17.4
vt_base_version='v7.0.2'
orchestrator_version='3.2.3'
pmm_client_version='1.17.4'

docker pull vitess/base:$vt_base_version

docker build --build-arg VT_BASE_VER=$vt_base_version -t vitess/k8s:$vt_base_version-buster .
docker tag vitess/k8s:$vt_base_version-buster vitess/k8s:$vt_base_version
docker push vitess/k8s:$vt_base_version-buster
docker push vitess/k8s:$vt_base_version

docker build --build-arg VT_BASE_VER=$vt_base_version -t vitess/vtgate:$vt_base_version-buster vtgate
docker tag vitess/vtgate:$vt_base_version-buster vitess/vtgate:$vt_base_version
docker push vitess/vtgate:$vt_base_version-buster
docker push vitess/vtgate:$vt_base_version

docker build --build-arg VT_BASE_VER=$vt_base_version -t vitess/vttablet:$vt_base_version-buster vttablet
docker tag vitess/vttablet:$vt_base_version-buster vitess/vttablet:$vt_base_version
docker push vitess/vttablet:$vt_base_version-buster
docker push vitess/vttablet:$vt_base_version

docker build --build-arg VT_BASE_VER=$vt_base_version -t vitess/mysqlctld:$vt_base_version-buster mysqlctld
docker tag vitess/mysqlctld:$vt_base_version-buster vitess/mysqlctld:$vt_base_version
docker push vitess/mysqlctld:$vt_base_version-buster
docker push vitess/mysqlctld:$vt_base_version

docker build --build-arg VT_BASE_VER=$vt_base_version -t vitess/vtctl:$vt_base_version-buster vtctl
docker tag vitess/vtctl:$vt_base_version-buster vitess/vtctl:$vt_base_version
docker push vitess/vtctl:$vt_base_version-buster
docker push vitess/vtctl:$vt_base_version

docker build --build-arg VT_BASE_VER=$vt_base_version -t vitess/vtctlclient:$vt_base_version-buster vtctlclient
docker tag vitess/vtctlclient:$vt_base_version-buster vitess/vtctlclient:$vt_base_version
docker push vitess/vtctlclient:$vt_base_version-buster
docker push vitess/vtctlclient:$vt_base_version

docker build --build-arg VT_BASE_VER=$vt_base_version -t vitess/vtctld:$vt_base_version-buster vtctld
docker tag vitess/vtctld:$vt_base_version-buster vitess/vtctld:$vt_base_version
docker push vitess/vtctld:$vt_base_version-buster
docker push vitess/vtctld:$vt_base_version

docker build --build-arg VT_BASE_VER=$vt_base_version -t vitess/vtworker:$vt_base_version-buster vtworker
docker tag vitess/vtworker:$vt_base_version-buster vitess/vtworker:$vt_base_version
docker push vitess/vtworker:$vt_base_version-buster
docker push vitess/vtworker:$vt_base_version

docker build --build-arg VT_BASE_VER=$vt_base_version -t vitess/logrotate:$vt_base_version-buster logrotate
docker tag vitess/logrotate:$vt_base_version-buster vitess/logrotate:$vt_base_version
docker push vitess/logrotate:$vt_base_version-buster
docker push vitess/logrotate:$vt_base_version

docker build --build-arg VT_BASE_VER=$vt_base_version -t vitess/logtail:$vt_base_version-buster logtail
docker tag vitess/logtail:$vt_base_version-buster vitess/logtail:$vt_base_version
docker push vitess/logtail:$vt_base_version-buster
docker push vitess/logtail:$vt_base_version

docker build --build-arg VT_BASE_VER=$vt_base_version --build-arg PMM_CLIENT_VER=$pmm_client_version -t vitess/pmm-client:v$pmm_client_version-buster pmm-client
docker tag vitess/pmm-client:v$pmm_client_version-buster vitess/pmm-client:v$pmm_client_version
docker push vitess/pmm-client:v$pmm_client_version-buster
docker push vitess/pmm-client:v$pmm_client_version

docker build --build-arg VT_BASE_VER=$vt_base_version --build-arg PMM_CLIENT_VER=$pmm_client_version -t vitess/orchestrator:v$orchestrator_version-buster orchestrator
docker build --build-arg VT_BASE_VER=$vt_base_version --build-arg ORC_VER=$orchestrator_version -t vitess/orchestrator:v$orchestrator_version-buster orchestrator
docker tag vitess/orchestrator:v$orchestrator_version-buster vitess/orchestrator:v$orchestrator_version
docker push vitess/orchestrator:v$orchestrator_version-buster
docker push vitess/orchestrator:v$orchestrator_version