Skip to content

Commit 3ef5377

Browse files
author
OpenShift Bot
authored
Merge pull request #13009 from smarterclayton/release_fixes
Merged by openshift-bot
2 parents c9fd22b + f6edd3d commit 3ef5377

File tree

3 files changed

+8
-22
lines changed

3 files changed

+8
-22
lines changed

Diff for: hack/release.sh

+4-16
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,9 @@ elif [[ "$( git rev-parse "${tag}" )" != "$( git rev-parse HEAD )" ]]; then
1515
fi
1616
commit="$( git rev-parse ${tag} )"
1717

18-
function removeimage() {
19-
for i in $@; do
20-
if docker inspect $i &>/dev/null; then
21-
docker rmi $i
22-
fi
23-
if docker inspect docker.io/$i &>/dev/null; then
24-
docker rmi docker.io/$i
25-
fi
26-
done
27-
}
28-
2918
# Ensure that the build is using the latest public base images
30-
removeimage openshift/origin-base openshift/origin-release openshift/origin-haproxy-router-base
31-
docker pull openshift/origin-base
32-
docker pull openshift/origin-release
33-
docker pull openshift/origin-haproxy-router-base
19+
docker pull "openshift/origin-base:latest"
20+
docker pull "${OS_BUILD_ENV_IMAGE}"
3421

3522
OS_GIT_COMMIT="${commit}" hack/build-release.sh
3623
hack/build-images.sh
@@ -40,4 +27,5 @@ echo
4027
echo "Pushed ${tag} to DockerHub"
4128
echo "1. Push tag to GitHub with: git push origin --tags # (ensure you have no extra tags in your environment)"
4229
echo "2. Create a new release on the releases page and upload the built binaries in _output/local/releases"
43-
echo "3. Send an email"
30+
echo "3. Send an email"
31+
echo

Diff for: hack/update-changelog.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ function component() {
2828
if [[ "${new}" != "${old}" ]]; then
2929
version=$(go run tools/godepversion/godepversion.go /tmp/godeps.new $3 comment)
3030
echo "- Updated to $1 [$version + patches](https://github.com/$2/commits/$new)"
31-
git log --grep=UPSTREAM --no-merges --pretty='tformat:%H' $from..$to -- vendor/$4 | \
32-
xargs -L 1 /bin/sh -c 'echo " - $( git show -s --pretty=tformat:%s $1 | cut -f 2- -d " " ) [\\$( git log $to ^$1 --merges --ancestry-path --pretty="tformat:%s" | tail -1 | cut -f 4 -d " " )](https://github.com/$repo/pull/$( git log $to ^$1 --merges --ancestry-path --pretty="tformat:%s" | tail -1 | cut -f 4 -d " " | cut -c 2- ))"' '' | sort -n
3331
fi
32+
git log --grep=UPSTREAM --no-merges --pretty='tformat:%H' $from..$to -- vendor/$4 | \
33+
xargs -L 1 /bin/sh -c 'echo " - $( git show -s --pretty=tformat:%s $1 | cut -f 2- -d " " ) [\\$( git log $to ^$1 --merges --ancestry-path --pretty="tformat:%s" | tail -1 | cut -f 4 -d " " )](https://github.com/$repo/pull/$( git log $to ^$1 --merges --ancestry-path --pretty="tformat:%s" | tail -1 | cut -f 4 -d " " | cut -c 2- ))"' '' | sort -n
3434
fi
3535
}
3636

Diff for: images/origin/Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#
1111
FROM openshift/origin-base
1212

13+
COPY system-container/system-container-wrapper.sh /usr/local/bin/
14+
COPY system-container/config.json.template system-container/manifest.json system-container/service.template /exports/
1315
COPY bin/openshift /usr/bin/openshift
1416
RUN ln -s /usr/bin/openshift /usr/bin/oc && \
1517
ln -s /usr/bin/openshift /usr/bin/oadm && \
@@ -31,8 +33,4 @@ ENV HOME=/root \
3133
WORKDIR /var/lib/origin
3234
EXPOSE 8443 53
3335

34-
# files required to run as a system container
35-
COPY system-container/system-container-wrapper.sh /usr/local/bin
36-
COPY system-container/config.json.template system-container/manifest.json system-container/service.template /exports/
37-
3836
ENTRYPOINT ["/usr/bin/openshift"]

0 commit comments

Comments
 (0)