Skip to content

Commit 94d2e61

Browse files
committed
Fix WildFly archive extraction from Maven Central
1 parent df383ba commit 94d2e61

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

smoke-tests/images/servlet/src/wildfly.dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ RUN echo curl -O -L $DOWNLOAD_URL
3232
# Add the WildFly distribution to /opt, and make wildfly the owner of the extracted tar content
3333
# Make sure the distribution is available from a well-known place
3434
RUN cd $HOME \
35+
&& archive=$(basename "$DOWNLOAD_URL") \
3536
&& wget -nv $DOWNLOAD_URL \
36-
&& tar xf wildfly-$WILDFLY_VERSION.tar.gz \
37+
&& tar xf "$archive" \
3738
&& mv $HOME/wildfly-$WILDFLY_VERSION $JBOSS_HOME \
38-
&& rm wildfly-$WILDFLY_VERSION.tar.gz \
39+
&& rm "$archive" \
3940
&& chown -R jboss:0 ${JBOSS_HOME} \
4041
&& chmod -R g+rw ${JBOSS_HOME}
4142

0 commit comments

Comments
 (0)