Namespace
vulhub
Image / Tag
drupal:7.31
Content Digest
sha256:00b5125583e38b7a9551ecf24d53898a88d10e52f67022d59d51831e46e4b367
Details
Created

2018-08-18 18:18:59 UTC

Size

153 MB

Content Digest
Environment
APACHE_CONFDIR

/etc/apache2

APACHE_ENVVARS

/etc/apache2/envvars

DRUPAL_VERSION

7.31

GPG_KEYS

0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://secure.php.net/get/php-5.6.36.tar.xz.asc/from/this/mirror

PHP_CFLAGS

-fstack-protector-strong -fpic -fpie -O2

PHP_CPPFLAGS

-fstack-protector-strong -fpic -fpie -O2

PHP_EXTRA_BUILD_DEPS

apache2-dev

PHP_EXTRA_CONFIGURE_ARGS

--with-apxs2

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -Wl,--hash-style=both -pie

PHP_MD5

PHP_SHA256

18f536bf548e909b4e980379d0c4e56d024b2b1eb1c9768fd169360491f1d6dd

PHP_URL

https://secure.php.net/get/php-5.6.36.tar.xz/from/this/mirror

PHP_VERSION

5.6.36


Layers

[#000] sha256:3d77ce4481b119f00e53bee9b4a443469c42c224db954ddaa2e6b74cd73cd5d0 - 33.89% (51.7 MB)

[#001] sha256:32bfdb6043a841abdd5bc9f7efcfa1281cc517fc2112f99db013793d2df9e9d7 - 0.0% (226 Bytes)

[#002] sha256:327a3b8246c6014487246bf899947e96eeaff0e29d81cb620ea3e029a54d7111 - 46.64% (71.2 MB)

[#003] sha256:1e3b73e77223911e268897f6a159b4df1c493624c5edf2d4d17cf8fddf9d0540 - 0.0% (183 Bytes)

[#004] sha256:a1d8f2630b58471dbbfa1aaa1874e597d8fe1678edc9802287ef6a2a454dd9bc - 2.79% (4.26 MB)

[#005] sha256:5599b03aa14f59d4333b651fa56dd6d60785caf3201bf72cbbb1f5dfcc1b01b2 - 0.0% (1.22 KB)

[#006] sha256:13b5cca3ce534c7f00f42788cd703b7f6db116e75ddea4bf668bab2310373268 - 0.0% (429 Bytes)

[#007] sha256:2946903117b36efdd86a74223d1813ea776ab9462f83d90cd516410d478c4eeb - 0.0% (229 Bytes)

[#008] sha256:5f4e5ea64a21b12488c6dd300615067f4dc5c0e6275ccd256c449965a5ce1336 - 0.0% (482 Bytes)

[#009] sha256:92a5dfaa9861d3d30caa8bc4d4b4824d26f37c41e20b9d1ef3a08939197e36c9 - 8.01% (12.2 MB)

[#010] sha256:4bb8b839d25255d6cd8636be3615a9e248ad463aff34136fdc75837517591a38 - 0.0% (499 Bytes)

[#011] sha256:c736eb6b8cedc0c1b36f8e665ed94ff6dbd4c53f65b257145f20af8410b1da9e - 6.07% (9.27 MB)

[#012] sha256:aa2df47c291237edd7c26299446f940363801aef0fcfe26a7d885f51c53662e1 - 0.0% (2.14 KB)

[#013] sha256:851b4d97812a7e155b4eda7b439987823e1891095dbdc6535967708ba5ae92af - 0.0% (905 Bytes)

[#014] sha256:f4e37befdbbf5b22b66430c97e67a75c473beb4ded87ab0b0451a60f08ce54ee - 0.59% (915 KB)

[#015] sha256:633e6d8daa13da19c177c7e922c5187b64a4bd44773de04bba45de6dd1271f83 - 2.01% (3.07 MB)


History
2018-04-28 06:44:15 UTC

/bin/sh -c #(nop) ADD file:3e6141c0c9cb74b14a281eb3ab7aaf162a625733e652c3948b323bb2ec8b4343 in /

2018-04-28 06:44:16 UTC

/bin/sh -c #(nop) CMD ["bash"]

2018-04-30 22:07:39 UTC

/bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php

2018-04-30 22:07:39 UTC

/bin/sh -c #(nop) ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

2018-04-30 22:08:18 UTC

/bin/sh -c apt-get update && apt-get install -y $PHPIZE_DEPS ca-certificates curl xz-utils --no-install-recommends && rm -r /var/lib/apt/lists/*

2018-04-30 22:08:18 UTC

/bin/sh -c #(nop) ENV PHP_INI_DIR=/usr/local/etc/php

2018-04-30 22:08:19 UTC

/bin/sh -c mkdir -p $PHP_INI_DIR/conf.d

2018-04-30 22:23:10 UTC

/bin/sh -c apt-get update && apt-get install -y --no-install-recommends apache2 && rm -rf /var/lib/apt/lists/*

2018-04-30 22:23:10 UTC

/bin/sh -c #(nop) ENV APACHE_CONFDIR=/etc/apache2

2018-04-30 22:23:11 UTC

/bin/sh -c #(nop) ENV APACHE_ENVVARS=/etc/apache2/envvars

2018-04-30 22:23:11 UTC

/bin/sh -c set -ex && sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS" && . "$APACHE_ENVVARS" && for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" /var/www/html ; do rm -rvf "$dir" && mkdir -p "$dir" && chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; done

2018-04-30 22:23:12 UTC

/bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork

2018-04-30 22:23:13 UTC

/bin/sh -c set -ex && . "$APACHE_ENVVARS" && ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log" && ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log" && ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"

2018-04-30 22:23:14 UTC

/bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php

2018-04-30 22:23:14 UTC

/bin/sh -c #(nop) ENV PHP_EXTRA_BUILD_DEPS=apache2-dev

2018-04-30 22:23:14 UTC

/bin/sh -c #(nop) ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2

2018-04-30 22:23:15 UTC

/bin/sh -c #(nop) ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2

2018-04-30 22:23:15 UTC

/bin/sh -c #(nop) ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2

2018-04-30 22:23:15 UTC

/bin/sh -c #(nop) ENV PHP_LDFLAGS=-Wl,-O1 -Wl,--hash-style=both -pie

2018-05-01 00:27:00 UTC

/bin/sh -c #(nop) ENV GPG_KEYS=0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3

2018-05-05 02:06:23 UTC

/bin/sh -c #(nop) ENV PHP_VERSION=5.6.36

2018-05-05 02:06:23 UTC

/bin/sh -c #(nop) ENV PHP_URL=https://secure.php.net/get/php-5.6.36.tar.xz/from/this/mirror PHP_ASC_URL=https://secure.php.net/get/php-5.6.36.tar.xz.asc/from/this/mirror

2018-05-05 02:06:23 UTC

/bin/sh -c #(nop) ENV PHP_SHA256=18f536bf548e909b4e980379d0c4e56d024b2b1eb1c9768fd169360491f1d6dd PHP_MD5=

2018-05-05 02:06:46 UTC

/bin/sh -c set -xe; fetchDeps=' wget '; if ! command -v gpg > /dev/null; then fetchDeps="$fetchDeps dirmngr gnupg "; fi; apt-get update; apt-get install -y --no-install-recommends $fetchDeps; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; wget -O php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then wget -O php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; rm -rf "$GNUPGHOME"; fi; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps

2018-05-05 02:06:47 UTC

/bin/sh -c #(nop) COPY file:207c686e3fed4f71f8a7b245d8dcae9c9048d276a326d82b553c12a90af0c0ca in /usr/local/bin/

2018-05-05 02:09:17 UTC

/bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libcurl4-openssl-dev libedit-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --disable-cgi --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; php --version; pecl update-channels; rm -rf /tmp/pear ~/.pearrc

2018-05-05 02:09:17 UTC

/bin/sh -c #(nop) COPY multi:c925dfb355ea16ba0238c8b6ca78d3cd7fe815932bf707b25bbf051070430157 in /usr/local/bin/

2018-05-05 02:09:17 UTC

/bin/sh -c #(nop) ENTRYPOINT ["docker-php-entrypoint"]

2018-05-05 02:09:18 UTC

/bin/sh -c #(nop) COPY file:24613ecbb1ce6a09f683b0753da9c26a1af07547326e8a02f6eec80ad6f2774a in /usr/local/bin/

2018-05-05 02:09:18 UTC

/bin/sh -c #(nop) WORKDIR /var/www/html

2018-05-05 02:09:18 UTC

/bin/sh -c #(nop) EXPOSE 80/tcp

2018-05-05 02:09:19 UTC

/bin/sh -c #(nop) CMD ["apache2-foreground"]

2018-08-18 18:18:57 UTC

/bin/sh -c set -ex; if command -v a2enmod; then a2enmod rewrite; fi; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libjpeg-dev libpng-dev ; docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr; docker-php-ext-install -j "$(nproc)" gd zip pdo_mysql ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*

2018-08-18 18:18:57 UTC

/bin/sh -c #(nop) WORKDIR /var/www/html

2018-08-18 18:18:57 UTC

/bin/sh -c #(nop) ENV DRUPAL_VERSION=7.31

2018-08-18 18:18:59 UTC

/bin/sh -c curl -fSL "https://ftp.drupal.org/files/projects/drupal-${DRUPAL_VERSION}.tar.gz" -o drupal.tar.gz && tar -xz --strip-components=1 -f drupal.tar.gz && rm drupal.tar.gz && chown -R www-data:www-data sites modules themes

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete