Initial commit
This commit is contained in:
10
webtest/Dockerfile
Normal file
10
webtest/Dockerfile
Normal 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
|
||||||
12
webtest/Dockerfile.arm32v7
Normal file
12
webtest/Dockerfile.arm32v7
Normal 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
9
webtest/README.md
Normal 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
1
webtest/entrypoint.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
ruby -rwebrick -e'WEBrick::HTTPServer.new(:Port =>80, :DocumentRoot => Dir.pwd).start'
|
||||||
2
webtest/hooks/post_checkout
Normal file
2
webtest/hooks/post_checkout
Normal 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
4
webtest/hooks/pre_build
Normal 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
8
webtest/index.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>THE WEBTEST SERVICE WORKS</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>THE WEBTEST SERVICE WORKS</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user