Page MenuHomeDevCentral

D2834.diff
No OneTemporary

D2834.diff

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,26 @@
+#
+# Tommy Docker image
+# A simple Hudson/Jenkins dashboard view
+#
+
+FROM ruby:2.5
+MAINTAINER Sébastien Santoro aka Dereckson <dereckson+nasqueron-docker@espace-win.org>
+
+#
+# Prepare the container
+#
+
+ENV LANG C.UTF-8
+
+RUN mkdir -p /usr/src/app && \
+ git clone https://github.com/nasqueron/tommy.git /usr/src/app && \
+ cd /usr/src/app && \
+ bundle install
+
+#
+# Run the container
+#
+
+EXPOSE 4567
+WORKDIR /usr/src/app
+CMD ["ruby", "/usr/src/app/tommy.rb", "-o", "0.0.0.0"]
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -10,9 +10,10 @@
### Getting started
-Put your Jenkins URL in place (JENKINS_URL) and boot the app.
-If you are password protecting your Hudson dashboard then encode like this:
-https://username:password@instance.domain.tld
+The JENKINS_URL variable environment should point to your Jenkins instance.
+
+If a login is required to use the API,
+use https://login:password@jenkins.domain.tld as syntax.
### Run with Docker
@@ -22,7 +23,7 @@
docker pull nasqueron/tommy
docker run -dt -p 8080:4567 -e JENKINS_URL=https://ci.domain.tld nasqueron/tommy
```
-
+
### Exit codes
The app uses the following exit codes:

File Metadata

Mime Type
text/plain
Expires
Thu, Feb 27, 21:33 (2 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2443555
Default Alt Text
D2834.diff (1 KB)

Event Timeline