Skip to content

Commit a75d5c4

Browse files
committed
Merge branch 'release-0.8.0' into stable
2 parents 0a1e796 + 8e81c45 commit a75d5c4

File tree

14 files changed

+62
-17
lines changed

14 files changed

+62
-17
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM osixia/baseimage:0.4.0
1+
FROM osixia/baseimage:0.5.0
22
MAINTAINER Bertrand Gouny <[email protected]>
33

44
# From Nick Stenning's work

Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
NAME = osixia/openldap
2+
VERSION = 0.8.0
3+
4+
.PHONY: all build test tag_latest release
5+
6+
all: build
7+
8+
build:
9+
docker.io build -t $(NAME):$(VERSION) --rm .
10+
11+
test:
12+
env NAME=$(NAME) VERSION=$(VERSION) ./test.sh
13+
14+
tag_latest:
15+
docker.io tag $(NAME):$(VERSION) $(NAME):latest
16+
17+
release: build test tag_latest
18+
@if ! docker.io images $(NAME) | awk '{ print $$2 }' | grep -q -F $(VERSION); then echo "$(NAME) version $(VERSION) is not yet built. Please run 'make build'"; false; fi
19+
docker.io push $(NAME)
20+
@echo "*** Don't forget to run 'twgit release finish' :)"
21+

test-repository.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
# Usage
4+
# sudo ./test.sh
5+
# add -v for verbose mode (or type whatever you like !) :p
6+
7+
. test/config-repository
8+
. test/tools/run.sh
9+
10+
run_test simple.sh "dn: dc=example,dc=com"
11+
run_test tls.sh "dn: dc=example,dc=com"
12+
run_test db.sh "dn: dc=otherdomain,dc=com"
13+
14+
. test/tools/end.sh
15+

test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# sudo ./test.sh
55
# add -v for verbose mode (or type whatever you like !) :p
66

7+
. test/config
78
. test/tools/run.sh
89

910
run_test tools/build-container.sh "Successfully built"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
testImage=openldap-test
22
testContainer=openldap-test-container
33
testDir=/osixia-test-docker-openldap
4+
5+
export testImage
6+
export testContainer
7+
export testDir
8+

test/config-repository

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
testImage=osixia/openldap:latest
2+
testContainer=openldap-repository-test-container
3+
testDir=/osixia-repository-test-docker-openldap
4+
5+
export testImage
6+
export testContainer
7+
export testDir

test/db.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh
22

33
dir=$(dirname $0)
4-
. $dir/tools/config.prop
54

65
if [ -d "$testDir" ]; then
76
rm -r $testDir

test/simple.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/bin/sh
22

33
dir=$(dirname $0)
4-
. $dir/tools/config.prop
5-
64
. $dir/tools/run-container.sh
5+
76
echo "ldapsearch -x -h $IP -b dc=example,dc=com"
87
ldapsearch -x -h $IP -b dc=example,dc=com
98

test/tls.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/bin/sh
22

33
dir=$(dirname $0)
4-
. $dir/tools/config.prop
5-
64
. $dir/tls/run.sh
5+
76
echo "ldapsearch -x -h $certCN -b dc=example,dc=com -ZZ"
87
ldapsearch -x -h $certCN -b dc=example,dc=com -ZZ
98

test/tools/build-container.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/sh
22

3-
. $(dirname $0)/config.prop
4-
53
docker.io build -t $testImage .
64
#docker.io build --no-cache=true -t $testImage .
75

0 commit comments

Comments
 (0)