Skip to content

Commit 03be991

Browse files
committed
[IMP] Add QA and base cmd/entry
* Add a base docker-entrypoint * Add a base cmd `cat` * Add a Travis file * Add a ReadMe * Fix Lint DL3007 in Dockerfile, stick alpine version
1 parent 3aa1e98 commit 03be991

File tree

4 files changed

+120
-1
lines changed

4 files changed

+120
-1
lines changed

.travis.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
sudo: required
2+
3+
language: python
4+
5+
services:
6+
- docker
7+
8+
env:
9+
global:
10+
# These are for pushing to DockerHub
11+
- DOCKER_REPO="clouder/clouder-base"
12+
- DOCKER_USER="clouder-bot"
13+
- DOCKER_TAG="alpine"
14+
# Generate this per repo with the following:
15+
# travis encrypt '$DOCKER_PASS="$DOCKER_PASS"'-r LasLabs/repo-name
16+
- secure: "$DOCKER_PASS_TOKEN"
17+
- PROD_BRANCH="alpine"
18+
- DAEMONIZE="1"
19+
20+
matrix:
21+
- TESTS="1"
22+
- LINT_CHECK="1"
23+
- HUB="1"
24+
25+
install:
26+
- git clone --depth=1 https://github.com/LasLabs/docker-quality-tools.git -b release/0.1 ${HOME}/docker-quality-tools
27+
- export PATH=${HOME}/docker-quality-tools/travis:${PATH}
28+
- travis_install
29+
30+
script:
31+
- travis_run
32+
33+
after_success:
34+
- travis_after_success

Dockerfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
FROM alpine:latest
1+
FROM alpine:3.5
22
MAINTAINER Yannick Buron yburon@goclouder.net
33

44
RUN apk add --update ssmtp wget curl rsync bash
55

6+
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
7+
8+
ENTRYPOINT ['/docker-entrypoint.sh']
9+
CMD ['cat']
10+
611
# generate a locale and ensure it on system users
712
#RUN locale-gen en_US.UTF-8 && update-locale && echo 'LANG="en_US.UTF-8"' > /etc/default/locale
813
#ENV LANG en_US.UTF-8

README.md

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
[![License: MIT](https://img.shields.io/badge/licence-MIT-blue.svg)](https://opensource.org/licenses/MIT)
2+
[![Build Status](https://travis-ci.org/clouder-images/clouder-base.svg?branch=master)](https://travis-ci.org/LasLabs/docker-repo)
3+
4+
Clouder Base Image
5+
==================
6+
7+
This image provides the base for all Clouder images to inherit, if possible.
8+
9+
In the event that an image cannot inherit from this, the following assets are
10+
assumed to exist and must be provided:
11+
12+
*
13+
14+
Build Arguments
15+
===============
16+
17+
The following build arguments are available for customization:
18+
19+
20+
| Name | Default | Description |
21+
|------|---------|-------------|
22+
23+
24+
Environment Variables
25+
=====================
26+
27+
The following environment variables are available for your configuration
28+
pleasure:
29+
30+
| Name | Default | Description |
31+
|------|---------|-------------|
32+
33+
34+
Known Issues / Roadmap
35+
======================
36+
37+
*
38+
39+
Bug Tracker
40+
===========
41+
42+
Bugs are tracked on [GitHub Issues](https://github.com/clouder-images/clouder-base/issues).
43+
In case of trouble, please check there to see if your issue has already been reported.
44+
If you spotted it first, help us smash it by providing detailed and welcomed feedback.
45+
46+
Credits
47+
=======
48+
49+
Contributors
50+
------------
51+
52+
* Yannick Buron <yburon@goclouder.net>
53+
* Dave Lasley <dave@laslabs.com>
54+
55+
Maintainer
56+
----------
57+
58+
[![Clouder SASU](https://goclouder.net/logo.png)](https://goclouder.net)
59+
60+
This module is maintained in cooperation by:
61+
62+
* [Clouder SASU](https://goclouder.net)
63+
* [LasLabs Inc.](https://laslabs.com)
64+
65+
* https://github.com/clouder-images/clouder-base

docker-entrypoint.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
# Copyright 2017 LasLabs Inc.
3+
# License MIT (https://opensource.org/licenses/MIT).
4+
5+
set -e
6+
7+
# Add command if needed
8+
if [ "${1:0:1}" = '-' ]; then
9+
set -- my_command "$@"
10+
fi
11+
12+
# As argument is not related to command,
13+
# then assume that user wants to run their own process,
14+
# for example a `bash` shell to explore this image
15+
exec "$@"

0 commit comments

Comments
 (0)