Initial commit

This commit is contained in:
Christian
2020-08-04 14:19:00 +02:00
committed by Christian Richter
commit 61da308f8b
7 changed files with 46 additions and 0 deletions

10
webtest/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM debian:latest
RUN apt-get update \
&& apt-get install -y ruby
EXPOSE 80
RUN mkdir /web
RUN chmod 0777 /web
WORKDIR /web
COPY ./entrypoint.sh /bin
COPY ./index.html /web
ENTRYPOINT entrypoint.sh

View File

@@ -0,0 +1,12 @@
FROM arm32v7/debian:buster-slim
COPY qemu-arm-static /usr/bin
MAINTAINER "dragonchaser <crichter@suse.de>"
RUN apt-get update \
&& apt-get install -y ruby
EXPOSE 80
RUN mkdir /web
RUN chmod 0777 /web
WORKDIR /web
COPY ./entrypoint.sh /bin
COPY ./index.html /web
ENTRYPOINT entrypoint.sh

9
webtest/README.md Normal file
View File

@@ -0,0 +1,9 @@
# dockerhub-autobuild
This is a repo that holds Dockerfiles/entrypoints etc. for my dockerhub autobuilds
## webtest
A small container that serves data from `/web` using Ruby WEBrick
https://hub.docker.com/r/dragonchaser/webtest

1
webtest/entrypoint.sh Executable file
View File

@@ -0,0 +1 @@
ruby -rwebrick -e'WEBrick::HTTPServer.new(:Port =>80, :DocumentRoot => Dir.pwd).start'

View File

@@ -0,0 +1,2 @@
#!/bin/bash
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static . && pwd && ls

4
webtest/hooks/pre_build Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
#register qemu-*-static for all supported processors except the
# current one, but also remove all registered binfmt_misc before
docker run --rm --privileged multiarch/qemu-user-static:register --reset

8
webtest/index.html Normal file
View File

@@ -0,0 +1,8 @@
<html>
<head>
<title>THE WEBTEST SERVICE WORKS</title>
</head>
<body>
<h1>THE WEBTEST SERVICE WORKS</h1>
</body>
</html>