-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UP up content errExit, up build_img.sh --build-arg TAG=$version up df up df up ## quick builds export NOCAHE="--no-cache" 8.5.55 u nexus-2.7.1-01-bundle_repack.tar.gz
- Loading branch information
Showing
4 changed files
with
70 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
ARG repo=docker.io | ||
FROM ${repo}/infrastlabs/alpine-ext | ||
|
||
ARG url=http://10.1.1.114:680/temp_trans/pro_env | ||
ARG src=jdk-8u162-linux-x64.tar.gz | ||
ARG dest=/down | ||
#/jdk-8u162 | ||
ARG TAG | ||
|
||
USER root | ||
RUN wget --user=root --password=root $url/$src \ | ||
&& mkdir -p $dest && tar -zxf $src -C $dest \ | ||
&& rm -f $src | ||
RUN echo $TAG | ||
ADD *.sh / | ||
RUN sh /build.sh | ||
|
||
|
||
|
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 |
---|---|---|
@@ -1,29 +1,52 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
url=http://10.1.1.114:680/temp_trans/pro_env | ||
# https://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.5.55/bin/apache-tomcat-8.5.55.tar.gz | ||
|
||
|
||
url=http://172.25.23.190/repo3-env | ||
AUTH=root:root | ||
dest=/down | ||
|
||
function down(){ | ||
local src=$1 | ||
wget --user=root --password=root $url/$src | ||
curl -g -u $AUTH $url/$src > $src #-g with [] | ||
mkdir -p $dest && tar -zxf $src -C $dest | ||
rm -f $src | ||
} | ||
|
||
#TODO case > switch($tag) | ||
# hotspot, zulu, nexus, tomcat | ||
src=jdk-8u162-linux-x64.tar.gz | ||
$down $src | ||
|
||
src=zulu-xxx.tar.gz | ||
$down $src | ||
rm -f $src | ||
|
||
src=nexus-2.7.1-01-bundle.tar.gz | ||
$down $src | ||
tree -L 2 $dest/ | ||
} | ||
|
||
src=apache-tomcat-8.0.51.tar.gz | ||
$down $src | ||
#case > switch($TAG) | ||
echo "TAG: $TAG" | ||
cmd=`echo $TAG |cut -d'-' -f1` | ||
echo "cmd: $cmd" | ||
|
||
# hotspot, zulu, nexus, tomcat | ||
case "$cmd" in | ||
# OpenJDK8U-jdk_x64_linux_openj9_8u252b09_openj9-0.20.0.tar.gz | ||
hotspot) | ||
down "jdk-8u202-linux-x64.tar.gz" | ||
;; | ||
zulu) | ||
down "zulu8.46.0.19-ca-jdk8.0.252-linux_x64.tar.gz" | ||
;; | ||
nexus) | ||
down "nexus-2.7.1-01-bundle_repack.tar.gz" | ||
;; | ||
tomcat) | ||
down "apache-tomcat-8.5.55.tar.gz" | ||
;; | ||
all) #all in one? | ||
# $down jdk-8u162-linux-x64.tar.gz | ||
# $down zulu-xxx.tar.gz | ||
# $down nexus-2.7.1-01-bundle.tar.gz | ||
# $down apache-tomcat-8.0.51.tar.gz | ||
;; | ||
*) | ||
echo "error: TAG preffix not mactch, please check you tag." | ||
exit 2 | ||
;; | ||
esac | ||
|
||
rm -f /build.sh |
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