mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
25 lines
505 B
Docker
25 lines
505 B
Docker
|
FROM ubuntu:14.04
|
||
|
|
||
|
ENV MYSQL_USR root
|
||
|
ENV MYSQL_PWD root
|
||
|
ENV MYSQL_PORT_3306_TCP_ADDR localhost
|
||
|
ENV MYSQL_PORT_3306_TCP_PORT 3306
|
||
|
ENV REGISTRY_URL localhost:5000
|
||
|
|
||
|
RUN apt-get update -qqy && apt-get install -qqy libldap2-dev
|
||
|
|
||
|
ADD harbor /go/bin/harbor
|
||
|
ADD views /go/bin/views
|
||
|
ADD static /go/bin/static
|
||
|
|
||
|
RUN chmod u+x /go/bin/harbor
|
||
|
|
||
|
RUN sed -i 's/TLS_CACERT/#TLS_CAERT/g' /etc/ldap/ldap.conf
|
||
|
RUN sed -i '$a\TLS_REQCERT allow' /etc/ldap/ldap.conf
|
||
|
|
||
|
WORKDIR /go/bin/
|
||
|
ENTRYPOINT ["/go/bin/harbor"]
|
||
|
|
||
|
EXPOSE 80
|
||
|
|