Skip to content
Snippets Groups Projects
Commit f15fbb7f authored by Xueshan Feng's avatar Xueshan Feng
Browse files

Add stanford-server-directory repository.

parent d9bae1af
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,6 @@ build:
--cache=false
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $REGISTRY_IMAGE:2.5.7-buster
--destination $REGISTRY_IMAGE:2.4.59-buster
--destination $REGISTRY_IMAGE:$CI_COMMIT_SHA
## End of Job
......@@ -9,6 +9,7 @@ FROM debian:buster-slim
LABEL maintainer="sfeng@stanford.edu"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y -qq \
ca-certificates \
......@@ -20,9 +21,27 @@ RUN apt-get update && \
openssl \
lmdb-utils \
krb5-user \
gnugpg \
kstart \
procps
# local apt repos
RUN apt-get -qq update \
&& count=0 \
&& until apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDF37CD4279D4962 || [ $count -eq 5 ]; \
do \
count=`expr $count + 1`; sleep $count; \
done
# Add souces file to find stanford-server-directory package
ADD etc/apt/sources.list.d/stanford.list /etc/apt/sources.list.d/stanford.list
ADD etc/apt/sources.list.d/local.list /etc/apt/sources.list.d/local.list
RUN apt-get update --allow-unauthenticated \
&& apt-get --assume-yes --allow-unauthenticated install --no-install-recommends \
stanford-keyring \
libreadonly-perl \
stanford-server-directory
# Copy software from stage image
COPY --from=builder /artifacts /
......
#!/bin/bash -e
# Maintainer: sfeng@stanford.edu
OPENLDAP_VERSION=openldap-2.5.7
OPENLDAP_VERSION=openldap-2.4.59
CYRUS_SASL_VERSION=cyrus-sasl-2.1.27
OPENLDAP_TARBALL=ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/${OPENLDAP_VERSION}.tgz
CYRUS_SASL_TARBALL=https://github.com/cyrusimap/cyrus-sasl/releases/download/${CYRUS_SASL_VERSION}/${CYRUS_SASL_VERSION}.tar.gz
......
......@@ -8,8 +8,7 @@ export DRONE_SERVER=https://drone.svc.stanford.edu
export DRONE_REPO=authnz/docker-${DOCKER_IMAGE}
export DRONE_SEC_FILE=.drone.sec
export DRONE_REGISTRY_FILE=.drone.reg
#export DOCKER_IMAGE_VERSION=2.4.58-buster
export DOCKER_IMAGE_VERSION=2.5.7
export DOCKER_IMAGE_VERSION=2.4.59-buster
# GitLab configuration
export GITLAB_SERVER=https://code.stanford.edu
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment