File tree 4 files changed +28
-3
lines changed
4 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 14
14
15
15
FROM php:5-apache
16
16
17
+ COPY fixup-apt-list.sh /
18
+ RUN ["/fixup-apt-list.sh" ]
19
+
17
20
RUN apt-get update
18
21
RUN pear channel-discover pear.nrk.io
19
22
RUN pear install nrk/Predis
Original file line number Diff line number Diff line change 15
15
TAG = v6
16
16
REGISTRY = gcr.io/google-samples
17
17
ARCH ?= $(shell go env GOARCH)
18
- ALL_ARCH = amd64 arm arm64 ppc64le
18
+ ALL_ARCH = amd64 arm arm64 ppc64le s390x
19
19
20
20
QEMUVERSION =v2.7.0
21
21
@@ -35,7 +35,10 @@ ifeq ($(ARCH),ppc64le)
35
35
QEMUARCH=ppc64le
36
36
BASEIMAGE=ppc64le/php:5-apache
37
37
endif
38
-
38
+ ifeq ($(ARCH ) ,s390x)
39
+ QEMUARCH =s390x
40
+ BASEIMAGE =s390x/php:5-apache
41
+ endif
39
42
TEMP_DIR := $(shell mktemp -d)
40
43
41
44
all : all-container
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ DEB_ARCH=$( dpkg --print-architecture)
4
+
5
+ # http://security.debian.org/debian-security/dists/jessie/updates/InRelease is missing
6
+ # entries for some platforms, so we just remove the last line in sources.list in
7
+ # /etc/apt/sources.list which is "deb http://deb.debian.org/debian jessie-updates main"
8
+
9
+ case ${DEB_ARCH} in
10
+ arm64|ppc64el|s390x)
11
+ sed -i ' /security/d' /etc/apt/sources.list
12
+ ;;
13
+ esac
14
+
15
+ exit 0
Original file line number Diff line number Diff line change 15
15
TAG = v3
16
16
REGISTRY = gcr.io/google-samples
17
17
ARCH ?= $(shell go env GOARCH)
18
- ALL_ARCH = amd64 arm arm64 ppc64le
18
+ ALL_ARCH = amd64 arm arm64 ppc64le s390x
19
19
20
20
IMAGE = $(REGISTRY ) /gb-redisslave
21
21
MULTI_ARCH_IMG = $(IMAGE ) -$(ARCH )
@@ -33,6 +33,10 @@ ifeq ($(ARCH),ppc64le)
33
33
QEMUARCH=ppc64le
34
34
BASEIMAGE=ppc64le/redis:3.2.9
35
35
endif
36
+ ifeq ($(ARCH ) ,s390x)
37
+ QEMUARCH =s390x
38
+ BASEIMAGE =s390x/redis:3.2.9
39
+ endif
36
40
37
41
TEMP_DIR := $(shell mktemp -d)
38
42
You can’t perform that action at this time.
0 commit comments