-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile for running e2e tests (#97)
* Add Dockerfile for running e2e tests - Local e2e tests rely on having an ldap setup which is incredibly difficult to setup locally as the versions keep changing and with it some of the configurations. Hence, keeping the local dockerfile aligned with the os used on travis node will keep local development aligned with CI builds. - Changes to os versions on travis node can then be upgraded organically * Address PR comments fixing some commands in the dockerfile.
- Loading branch information
1 parent
47dfb9d
commit 1f72b12
Showing
3 changed files
with
42 additions
and
3 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
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,15 @@ | ||
FROM ubuntu:16.04 | ||
|
||
# DEBIAN_FRONTEND=noninteractive is needed in order for slapd not waiting for an interactive password to be supplied. | ||
RUN apt-get -y update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends slapd && \ | ||
apt-get -y install --no-install-recommends ldap-utils && \ | ||
apt-get -y install tree && \ | ||
apt-get -y install curl && \ | ||
apt-get -y install build-essential && \ | ||
apt-get -y install git-all | ||
|
||
RUN curl -fsSL https://go.dev/dl/go1.18.10.linux-amd64.tar.gz -o /tmp/go1.18.10.linux-amd64.tar.gz && \ | ||
tar -C /usr/local -xzf /tmp/go1.18.10.linux-amd64.tar.gz | ||
|
||
ENV PATH=$PATH:/usr/local/go/bin |
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