It's based on the great work found at https://hub.docker.com/r/cdue/webconsole/dockerfile
$ cat Dockerfile
FROM php:7.0-apache
RUN apt-get update && apt-get install -y wget unzip jq git golang-go python3 vim expect
RUN apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
RUN apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io
RUN wget https://github.com/pivotal-cf/pivnet-cli/releases/download/v1.0.2/pivnet-linux-amd64-1.0.2 && \
mv pivnet-linux-amd64-1.0.2 /usr/local/bin/pivnet && \
chmod +x /usr/local/bin/pivnet
RUN pivnet login --api-token='ac4793fabcdefghijklmnop59612a7d3-r'
# Use pivnet cli to download PKS CLI
RUN pivnet download-product-files --product-slug='pivotal-container-service' --release-version='1.7.0' --product-file-id=646536 && \
mv pks-linux-amd64* /usr/local/bin/pks && \
chmod +x /usr/local/bin/pks
# Use pivnet cli to download Kubectl CLI
RUN pivnet download-product-files --product-slug='pivotal-container-service' --release-version='1.7.0' --product-file-id=633728 && \
mv kubectl-linux-amd64* /usr/local/bin/kubectl && \
chmod +x /usr/local/bin/kubectl
# Use pivnet cli to download CF CLI
RUN pivnet download-product-files --product-slug='elastic-runtime' --release-version='2.8.6' --product-file-id=625350 && \
unzip cf-cli*.zip && \
tar -xvf cf-cli_6.50.0_linux_x86-64.tgz && \
mv cf /usr/local/bin/cf && \
chmod +x /usr/local/bin/cf
RUN wget https://get.helm.sh/helm-v3.1.2-linux-amd64.tar.gz && \
tar -zxvf helm-v3.1.2-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/local/bin/helm && \
chmod +x /usr/local/bin/helm && \
rm helm-v3.1.2-linux-amd64.tar.gz && \
rm -rf linux-amd64
RUN wget https://github.com/nickola/web-console/releases/download/v0.9.7/webconsole-0.9.7.zip && \
unzip webconsole-0.9.7.zip -d / && \
mv /webconsole/* /var/www/html/ && \
rmdir /webconsole && \
rm webconsole-0.9.7.zip
RUN rm *.zip *.tgz
WORKDIR /var/www/html/
RUN sed "s/NO_LOGIN \= false/NO_LOGIN \= true/g" webconsole.php > index.php
docker build -t webconsole .
docker run -d --rm -p 31313:80 webconsole
So you can now open a browser and access 127.0.0.1:31313 to get access to a Debian Linux Web Console.
kubectl run webconsole --env="TERM=xterm" --image=rmeira/webconsoler --restart=Never
kubectl expose pod webconsole --type=LoadBalancer --port=80
kubectl get service
Once the LoadBalancer has been created, you can access the Debian Linux Web Console using a browser pointed at the LoadBalancer IP address.
Content type
Image
Digest
Size
497.2 MB
Last updated
over 6 years ago
docker pull rmeira/webconsoler