Skip to content

Commit 9d559f5

Browse files
authored
Print additional system and packages information on screen (#8)
1 parent a43cb99 commit 9d559f5

2 files changed

Lines changed: 76 additions & 0 deletions

File tree

ubuntu1404/docker-entrypoint.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ if [ -d "/mnt/build/cloudstack" ]; then
107107
else
108108
echo "Removing /mnt/build/cloudstack ..."
109109
rm -rf /mnt/build/cloudstack
110+
echo -e "\n--------\n"
110111
fi
111112
fi
112113
else
@@ -116,6 +117,42 @@ else
116117
fi
117118
fi
118119

120+
# Print out some environment information
121+
echo -e "System information:"
122+
cat /etc/*-release
123+
124+
echo -e "\nGit version:"
125+
git --version
126+
127+
echo -e "\nJava version:"
128+
java -version
129+
130+
echo -e "\nMaven version:"
131+
mvn --version
132+
133+
echo -e "\nPython version:"
134+
python --version
135+
136+
echo -e "\ndpkg version:"
137+
dpkg --version
138+
139+
echo -e "\ndevscripts version:"
140+
dpkg -s devscripts | grep "Version:" | awk '{print $2}'
141+
142+
echo -e "\ndebhelper version:"
143+
dpkg -s debhelper | grep "Version:" | awk '{print $2}'
144+
145+
echo -e "\ngenisoimage version:"
146+
genisoimage --version
147+
148+
echo -e "\nlsb-release version:"
149+
dpkg -s lsb-release | grep "Version:" | awk '{print $2}'
150+
151+
echo -e "\nbuild-essential version:"
152+
dpkg -s build-essential | grep "Version:" | awk '{print $2}'
153+
154+
echo -e "\n--------\n"
155+
119156
# Clone the remote provided git repo and ref
120157
if [ $use_remote = true ]; then
121158
echo "Cloning $git_remote ..."
@@ -141,6 +178,7 @@ fi
141178
# convert LONG flags to SHORT flags for anything prior 4.12.x.x
142179
echo "Detecting CloudStack version ..."
143180
pom_version=$(cd /mnt/build/cloudstack; mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
181+
echo "${pom_version}"
144182
major_version=$(echo ${pom_version} | cut -d. -f1)
145183
minor_version=$(echo ${pom_version} | cut -d. -f2)
146184
echo -e "\n--------\n"

ubuntu1604/docker-entrypoint.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ if [ -d "/mnt/build/cloudstack" ]; then
107107
else
108108
echo "Removing /mnt/build/cloudstack ..."
109109
rm -rf /mnt/build/cloudstack
110+
echo -e "\n--------\n"
110111
fi
111112
fi
112113
else
@@ -116,6 +117,42 @@ else
116117
fi
117118
fi
118119

120+
# Print out some environment information
121+
echo -e "System information:"
122+
cat /etc/*-release
123+
124+
echo -e "\nGit version:"
125+
git --version
126+
127+
echo -e "\nJava version:"
128+
java -version
129+
130+
echo -e "\nMaven version:"
131+
mvn --version
132+
133+
echo -e "\nPython version:"
134+
python --version
135+
136+
echo -e "\ndpkg version:"
137+
dpkg --version
138+
139+
echo -e "\ndevscripts version:"
140+
dpkg -s devscripts | grep "Version:" | awk '{print $2}'
141+
142+
echo -e "\ndebhelper version:"
143+
dpkg -s debhelper | grep "Version:" | awk '{print $2}'
144+
145+
echo -e "\ngenisoimage version:"
146+
genisoimage --version
147+
148+
echo -e "\nlsb-release version:"
149+
dpkg -s lsb-release | grep "Version:" | awk '{print $2}'
150+
151+
echo -e "\nbuild-essential version:"
152+
dpkg -s build-essential | grep "Version:" | awk '{print $2}'
153+
154+
echo -e "\n--------\n"
155+
119156
# Clone the remote provided git repo and ref
120157
if [ $use_remote = true ]; then
121158
echo "Cloning $git_remote ..."
@@ -141,6 +178,7 @@ fi
141178
# convert LONG flags to SHORT flags for anything prior 4.12.x.x
142179
echo "Detecting CloudStack version ..."
143180
pom_version=$(cd /mnt/build/cloudstack; mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
181+
echo "${pom_version}"
144182
major_version=$(echo ${pom_version} | cut -d. -f1)
145183
minor_version=$(echo ${pom_version} | cut -d. -f2)
146184
echo -e "\n--------\n"

0 commit comments

Comments
 (0)