Skip to content

Commit 76e6b64

Browse files
committed
Merge pull request #33 from arschles/mc-fix
fix(*): use alpine linux compatible mc binary
2 parents cb278c1 + b4b096a commit 76e6b64

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

manifests/deis-builder-rc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ spec:
2323
env:
2424
- name: "EXTERNAL_PORT"
2525
value: "2223"
26+
# This var needs to be passed so that the minio client (https://github.com/minio/mc) will work in Alpine linux
27+
- name: "DOCKERIMAGE"
28+
value: "1"
2629
volumeMounts:
2730
- name: minio-user
2831
mountPath: /var/run/secrets/object/store

rootfs/bin/mc

-388 KB
Binary file not shown.

rootfs/etc/confd/templates/builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ ACCESS_SECRET=`cat /var/run/secrets/object/store/access-secret-key`
126126
mkdir -p /var/minio-conf
127127
CONFIG_DIR=/var/minio-conf
128128
MC_PREFIX="mc -C $CONFIG_DIR --quiet"
129-
$MC_PREFIX config host all "$HTTP_PREFIX://$S3EP" $ACCESS_KEY $ACCESS_SECRET
129+
$MC_PREFIX config host add "$HTTP_PREFIX://$S3EP" $ACCESS_KEY $ACCESS_SECRET
130130
$MC_PREFIX mb "$HTTP_PREFIX://${S3EP}/git"
131131
$MC_PREFIX cp ${APP_NAME}.tar.gz $TAR_URL
132132
echo "stored tarfile in $TAR_URL"

0 commit comments

Comments
 (0)