forked from FlechaRoja/ApacheDS
-
Notifications
You must be signed in to change notification settings - Fork 61
Fixes for ApacheDS 2.0.0.AM27 and Ubuntu:20.04 #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dnrahamim
wants to merge
6
commits into
ome:master
Choose a base branch
from
dnrahamim:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c50155c
little fixes
c5ee511
fixes environment variable and path issues
7797b03
adds back entrypoint
82c6168
modifies README with commands to run container using local image
5c464ec
Merge pull request #1 from dnrahamim/fixes-and-refactors
dnrahamim 5591b2c
Improves readme language and formatting in Installation section
dnrahamim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,11 +1,12 @@ | ||
| FROM ubuntu:16.04 | ||
| FROM --platform=linux/amd64 ubuntu:20.04 | ||
| MAINTAINER [email protected] | ||
|
|
||
| ############################################# | ||
| # ApacheDS installation | ||
| ############################################# | ||
|
|
||
| ENV APACHEDS_VERSION 2.0.0.AM26 | ||
| ENV APACHEDS_VERSION 2.0.0.AM27 | ||
| ENV APACHEDS_SNAPSHOT 2.0.0.AM28-SNAPSHOT | ||
| ENV APACHEDS_ARCH amd64 | ||
|
|
||
| ENV APACHEDS_ARCHIVE apacheds-${APACHEDS_VERSION}-${APACHEDS_ARCH}.deb | ||
|
|
@@ -23,12 +24,14 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio | |
|
|
||
| RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \ | ||
| && apt-get install -y \ | ||
| ca-certificates \ | ||
| ldap-utils \ | ||
| procps \ | ||
| openjdk-8-jre-headless \ | ||
| curl \ | ||
| jq \ | ||
| && curl https://downloads.apache.org/directory/apacheds/dist/${APACHEDS_VERSION}/${APACHEDS_ARCHIVE} > ${APACHEDS_ARCHIVE} \ | ||
| jq | ||
|
|
||
| RUN curl https://dlcdn.apache.org//directory/apacheds/dist/2.0.0.AM27/apacheds-2.0.0.AM27-amd64.deb > ${APACHEDS_ARCHIVE} \ | ||
| && dpkg -i ${APACHEDS_ARCHIVE} \ | ||
| && rm ${APACHEDS_ARCHIVE} | ||
|
|
||
|
|
@@ -61,15 +64,17 @@ RUN mkdir ${APACHEDS_BOOTSTRAP}/cache \ | |
| && mkdir ${APACHEDS_BOOTSTRAP}/partitions \ | ||
| && chown -R ${APACHEDS_USER}:${APACHEDS_GROUP} ${APACHEDS_BOOTSTRAP} | ||
|
|
||
| RUN apt-get install -y python-ldap | ||
| RUN apt-get install -y pip | ||
| RUN apt-get install -y python-dev libldap2-dev libsasl2-dev libssl-dev | ||
| RUN pip install python-ldap | ||
| ADD bin/ldapmanager /usr/local/bin/ldapmanager | ||
|
|
||
| ############################################# | ||
| # ApacheDS wrapper command | ||
| ############################################# | ||
|
|
||
| # Correct for hard-coded INSTANCES_DIRECTORY variable | ||
| RUN sed -i "s#/var/lib/apacheds-${APACHEDS_VERSION}#/var/lib/apacheds#" /opt/apacheds-${APACHEDS_VERSION}/bin/apacheds | ||
| RUN sed -i "s#/var/lib/apacheds-${APACHEDS_VERSION}#/var/lib/apacheds#" /opt/apacheds-${APACHEDS_SNAPSHOT}/bin/apacheds | ||
|
|
||
|
|
||
| RUN curl -L -o /usr/local/bin/dumb-init \ | ||
|
|
||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -8,16 +8,24 @@ The project sources can be found on [GitHub](https://github.com/openmicroscopy/a | |
| ## Build | ||
|
|
||
| git clone https://github.com/openmicroscopy/apacheds-docker.git | ||
| docker build -t openmicroscopy/apacheds:2.0.0.AM26 apacheds-docker | ||
| docker build -t openmicroscopy/apacheds:2.0.0.AM27 apacheds-docker | ||
|
|
||
|
|
||
| ## Installation | ||
|
|
||
| The folder */var/lib/apacheds* contains the runtime data and thus has been defined as a volume. The image uses exactly the file system structure defined by the [ApacheDS documentation](https://directory.apache.org/apacheds/advanced-ug/2.2.1-debian-instance-layout.html). | ||
|
|
||
| The container can be started issuing the following command: | ||
| ### Run by Local Image | ||
|
|
||
| docker run --name ldap -d -p 389:10389 openmicroscopy/apacheds | ||
| Create and run a container using the image that was built in the previous steps: | ||
|
|
||
| docker run --name ldap --platform linux/amd64 -dit -p 389:10389 openmicroscopy/apacheds:2.0.0.AM27 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm... I see how you are referring here to the above commands but we also want a suggestion on how to run publicly. Maybe duplicate if you think it's worth it. |
||
|
|
||
| ### Run by Remote Image | ||
|
|
||
| Alternatively, you can create and run a container using a pre-built remote image: | ||
|
|
||
| docker run --name ldap --platform linux/amd64 -d -p 389:10389 openmicroscopy/apacheds | ||
|
|
||
|
|
||
| ## Usage | ||
|
|
||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.