-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding container to update the server version in mongodb (#198)
* Adding container to update the server version in mongodb Signed-off-by: Adarshkumar14 <1829034@kiit.ac.in> * Updating ci/cd Signed-off-by: Adarshkumar14 <1829034@kiit.ac.in> * modifying push.yml Signed-off-by: Adarshkumar14 <1829034@kiit.ac.in> * modifying build and push files Signed-off-by: Adarshkumar14 <1829034@kiit.ac.in> * modifying build and push files Signed-off-by: Adarshkumar14 <1829034@kiit.ac.in> * modifying build and push files Signed-off-by: Adarshkumar14 <1829034@kiit.ac.in> * modifying build and push files Signed-off-by: Adarshkumar14 <1829034@kiit.ac.in> * modifying build and push files Signed-off-by: Adarshkumar14 <1829034@kiit.ac.in> Signed-off-by: udit <udit@chaosnative.com> * putting multiple tags for the docker image Signed-off-by: Adarshkumar14 <1829034@kiit.ac.in>
- Loading branch information
1 parent
4bb6933
commit e30ebc8
Showing
5 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM alpine:3.11.2 | ||
RUN apk update && \ | ||
apk upgrade --update-cache --available | ||
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/main' >> /etc/apk/repositories | ||
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/community' >> /etc/apk/repositories | ||
RUN apk --no-cache add mongodb yaml-cpp=0.6.2-r2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ ! -z "${DNAME}" ] && [ ! -z "${DPASS}" ]; | ||
then | ||
|
||
docker login -u "${DNAME}" -p "${DPASS}"; | ||
#Push to docker hub repository with latest tag | ||
docker buildx build . -f Dockerfile --progress plane --push --no-cache --platform linux/amd64,linux/arm64 --tag litmuschaos/mongo-utils:0.1.0 --tag litmuschaos/mongo-utils:latest | ||
else | ||
echo "No docker credentials provided. Skip uploading litmuschaos/mongo-utils:4.0.5 to docker hub"; | ||
fi; |