-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First commit to master branch postgresql version 9.6.7
- Loading branch information
0 parents
commit df26901
Showing
15 changed files
with
917 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.