Skip to content

Commit

Permalink
First commit to master branch postgresql version 9.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroc0d3 committed May 1, 2018
0 parents commit df26901
Show file tree
Hide file tree
Showing 15 changed files with 917 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
.env
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
language: bash

dist: trusty

sudo: required

services:
- docker

env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- REPO=dockerframework/postgresql:9.6.7
- CGO_ENABLED=0
- GOOS=linux
- GOARCH=amd64

before_install:
- sudo chmod +x ./tests/docker_tests.sh
- sudo chmod +x ./tests/docker_run.sh
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null
- sudo service docker restart
- sleep 3

script:
- ./tests/docker_tests.sh
- ./tests/docker_run.sh
41 changes: 41 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
ARG POSTGRES_VERSION=9.6.7
FROM postgres:${POSTGRES_VERSION}

# ================================================================================================
# Inspiration: Docker Framework (https://github.com/zeroc0d3/docker-framework)
# Dwi Fahni Denni <[email protected]>
# ================================================================================================
# Core Contributors:
# - Mahmoud Zalt @mahmoudz
# - Bo-Yi Wu @appleboy
# - Philippe Trépanier @philtrep
# - Mike Erickson @mikeerickson
# - Dwi Fahni Denni @zeroc0d3
# - Thor Erik @thorerik
# - Winfried van Loon @winfried-van-loon
# - TJ Miller @sixlive
# - Yu-Lung Shao (Allen) @bestlong
# - Milan Urukalo @urukalo
# - Vince Chu @vwchu
# - Huadong Zuo @zuohuadong
# ================================================================================================

MAINTAINER "Laradock Team <[email protected]>"

ENV POSTGRES_ROOT_PASSWORD="root_password" \
POSTGRES_ROOT_HOST="localhost" \
POSTGRES_DATABASE="docker_framework" \
POSTGRES_USER="zeroc0d3_username" \
POSTGRES_PASSWORD="zeroc0d3_password" \
PGDATA="/var/lib/postgresql/data"

VOLUME /var/lib/postgresql/data

COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod 777 /usr/local/bin/docker-entrypoint.sh
RUN ln -sf usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat

ENTRYPOINT ["docker-entrypoint.sh"]

EXPOSE 5432
CMD ["postgres"]
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Docker Framework

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
13 changes: 13 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
IMAGE = dockerframework/postgresql

clean-local:
docker rmi $(CLEAN_OPTIONS) $(IMAGE):$(TAG) || true

build:
docker build $(BUILD_OPTIONS) -t $(IMAGE):$(TAG) .

pull:
docker pull $(PULL_OPTIONS) $(IMAGE):$(TAG)

push: build
docker push $(PUSH_OPTIONS) $(IMAGE):$(TAG)
Loading

0 comments on commit df26901

Please sign in to comment.