Cannot run the sample application provided in documentation

102 views
Skip to first unread message

nithin elias

unread,
Apr 2, 2020, 7:19:12 AM4/2/20
to dex-dev
I referred the documentation at https://github.com/dexidp/dex/blob/master/Documentation/getting-started.md and built the dex image using the dockerfile provided in github . Logged into the docker container and ran  dex serve examples/config-dev.yaml . But it doesn't work as respective db file doesn't exist . Can someone help ?

nithin elias

unread,
Apr 2, 2020, 7:23:08 AM4/2/20
to dex...@googlegroups.com

I used the dockerfile at  https://github.com/dexidp/dex  . However made some change . pasting the content below 

FROM golang:1.13-alpine

#RUN apk update && apk add bash

RUN apk add --no-cache --update alpine-sdk

COPY . /go/src/github.com/dexidp/dex
RUN cd /go/src/github.com/dexidp/dex && make release-binary

FROM alpine:3.10
# Dex connectors, such as GitHub and Google logins require root certificates.
# Proper installations should manage those certificates, but it's a bad user
# experience when this doesn't work out of the box.
#
# OpenSSL is required so wget can query HTTPS endpoints for health checking.
RUN apk add --update ca-certificates openssl

USER 1001:1001
COPY --from=0 /go/bin/dex /usr/local/bin/dex

# Import frontend assets and set the correct CWD directory so the assets
# are in the default path.
COPY web /web

#The folder /go is missing in the container. Not sure at some point it's getting deleted
#Hence copying again
COPY . /

WORKDIR /

ENTRYPOINT ["dex"]

CMD ["serve","examples/config-dev.yaml"]
 
--
You received this message because you are subscribed to the Google Groups "dex-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dex-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dex-dev/1dd3b5e5-a045-4670-813e-b01e603f0a23%40googlegroups.com.


--
Psalms 27:1 Lord Jesus is my light and my salvation
Reply all
Reply to author
Forward
0 new messages