Skip to content

Commit

Permalink
Move common parts out from this project
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Skalický committed May 12, 2017
1 parent 06e5686 commit 2b80258
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 134 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "common"]
path = common
url = https://github.com/sclorg/container-common-scripts.git
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -3,5 +3,8 @@ BASE_IMAGE_NAME = php
VERSIONS = 5.6 7.0
OPENSHIFT_NAMESPACES = 5.5

# Include common Makefile code.
include hack/common.mk
# HACK: Ensure that 'git pull' for old clones doesn't cause confusion.
# New clones should use '--recursive'.
.PHONY: $(shell test -f common/common.mk || echo >&2 'Please do "git submodule update --init" first.')

include common/common.mk
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -32,14 +32,14 @@ To build a PHP image, choose either the CentOS or RHEL based image:
subscribed RHEL machine.

```
$ git clone https://github.com/sclorg/s2i-php-container.git
$ git clone --recursive https://github.com/sclorg/s2i-php-container.git
$ cd s2i-php-container
$ make build TARGET=rhel7 VERSION=7.0
```

* **CentOS based image**
```
$ git clone https://github.com/sclorg/s2i-php-container.git
$ git clone --recursive https://github.com/sclorg/s2i-php-container.git
$ cd s2i-php-container
$ make build TARGET=centos7 VERSION=7.0
```
Expand Down
1 change: 1 addition & 0 deletions common
Submodule common added at 6be437
104 changes: 0 additions & 104 deletions hack/build.sh

This file was deleted.

26 changes: 0 additions & 26 deletions hack/common.mk

This file was deleted.

0 comments on commit 2b80258

Please sign in to comment.