GithubHelp home page GithubHelp logo

handnot2 / samly_simplesaml Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 3.0 30 KB

Docker based SimpleSAMLPhp IDP setup for development purposes. Includes templates for working with Samly Elixir Library enabled SP.

License: MIT License

Shell 13.01% Smarty 84.60% Dockerfile 2.40%
docker saml-idp samly-elixir-library simplesamlphp

samly_simplesaml's People

Contributors

brianmay avatar handnot2 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

samly_simplesaml's Issues

Unsatisfiable constraints: php5-mcrypt (missing) building docker image

The error seems to be fixed by explicitly using an older version of the php:fpm-alpine image at the top of the Dockerfile.

Simple Dockerfile change fixes this problem:

- FROM php:fpm-alpine
+ FROM php:5.6.31-fpm-alpine

There may be a better explicit version to use, and probably even better- a fix that uses the latest version. Sorry for not opening a PR, I'm just plowing along at the moment.

Thank you for creating the samly lib!

Full error:

(master) $ docker --debug=true build -t "samlysaml" -f Dockerfile . --no-cache
DEBU[0002] running session: uo75pd7z5gfd53qvwqdeenvtl
DEBU[0002] serving grpc connection
Sending build context to Docker daemon  227.3kB
Step 1/7 : FROM php:fpm-alpine
fpm-alpine: Pulling from library/php
6c40cc604d8e: Already exists
a4af09669d6b: Pull complete
ba64579e88cb: Pull complete
1d54458d46b3: Pull complete
83b3ebf15fbb: Pull complete
bdfd02670318: Pull complete
19f2ed82081d: Pull complete
1df93195e010: Pull complete
e9b3f5c5edee: Pull complete
720ec860b268: Pull complete
Digest: sha256:69faa5d59f1e061dd16600b63c54e195f8c7054049dee6d3959b08953247c557
Status: Downloaded newer image for php:fpm-alpine
 ---> b51832111996
Step 2/7 : ENV SAML_VERSION 1.16.2
 ---> Running in c0fd6023977c
Removing intermediate container c0fd6023977c
 ---> 6ea2622a82ea
Step 3/7 : RUN set -xe   && apk add --no-cache openssl   && apk add --no-cache php5-mcrypt   && apk add --no-cache php5-ldap 	&& buildDeps="wget ca-certificates" 	&& apk add --no-cache $buildDeps 	&& update-ca-certificates 	&& rm -rf /var/cache/apk/* 	&& wget https://github.com/simplesamlphp/simplesamlphp/releases/download/v${SAML_VERSION}/simplesamlphp-${SAML_VERSION}.tar.gz 		-O /tmp/simplesamlphp-${SAML_VERSION}.tar.gz --no-check-certificate 	&& tar -zxf /tmp/simplesamlphp-${SAML_VERSION}.tar.gz -C /tmp 	&& mv /tmp/simplesamlphp-${SAML_VERSION} /srv/simplesaml 	&& wget https://github.com/bander2/twit/releases/download/1.1.0/twit-linux-amd64 		-O /usr/local/bin/twit --secure-protocol=TLSv1_2 	&& chmod u+x /usr/local/bin/twit 	&& mkdir /lib64 	&& ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 	&& apk del $buildDeps
 ---> Running in 601070f4b012
+ apk add --no-cache openssl
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
OK: 18 MiB in 32 packages
+ apk add --no-cache php5-mcrypt
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  php5-mcrypt (missing):
    required by: world[php5-mcrypt]
The command '/bin/sh -c set -xe   && apk add --no-cache openssl   && apk add --no-cache php5-mcrypt   && apk add --no-cache php5-ldap 	&& buildDeps="wget ca-certificates" 	&& apk add --no-cache $buildDeps 	&& update-ca-certificates 	&& rm -rf /var/cache/apk/* 	&& wget https://github.com/simplesamlphp/simplesamlphp/releases/download/v${SAML_VERSION}/simplesamlphp-${SAML_VERSION}.tar.gz 		-O /tmp/simplesamlphp-${SAML_VERSION}.tar.gz --no-check-certificate 	&& tar -zxf /tmp/simplesamlphp-${SAML_VERSION}.tar.gz -C /tmp 	&& mv /tmp/simplesamlphp-${SAML_VERSION} /srv/simplesaml 	&& wget https://github.com/bander2/twit/releases/download/1.1.0/twit-linux-amd64 		-O /usr/local/bin/twit --secure-protocol=TLSv1_2 	&& chmod u+x /usr/local/bin/twit 	&& mkdir /lib64 	&& ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 	&& apk del $buildDeps' returned a non-zero code: 1

TLS error building docker image

+ tar -zxf /tmp/simplesamlphp-1.14.17.tar.gz -C /tmp
+ mv /tmp/simplesamlphp-1.14.17 /srv/simplesaml
+ wget https://github.com/bander2/twit/releases/download/1.1.0/twit-linux-amd64 -O /usr/local/bin/twit '--secure-protocol=TLSv1'
--2018-10-08 06:24:08--  https://github.com/bander2/twit/releases/download/1.1.0/twit-linux-amd64
Resolving github.com... 192.30.255.113, 192.30.255.112
Connecting to github.com|192.30.255.113|:443... connected.
OpenSSL: error:1400442E:SSL routines:CONNECT_CR_SRVR_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.
The command '/bin/sh -c set -xe   && apk add --no-cache openssl   && apk add --no-cache php5-mcrypt   && apk add --no-cache php5-ldap 	&& buildDeps="wget ca-certificates" 	&& apk add --no-cache $buildDeps 	&& update-ca-certificates 	&& rm -rf /var/cache/apk/* 	&& wget https://github.com/simplesamlphp/simplesamlphp/releases/download/v${SAML_VERSION}/simplesamlphp-${SAML_VERSION}.tar.gz 		-O /tmp/simplesamlphp-${SAML_VERSION}.tar.gz --no-check-certificate 	&& tar -zxf /tmp/simplesamlphp-${SAML_VERSION}.tar.gz -C /tmp 	&& mv /tmp/simplesamlphp-${SAML_VERSION} /srv/simplesaml 	&& wget https://github.com/bander2/twit/releases/download/1.1.0/twit-linux-amd64 		-O /usr/local/bin/twit --secure-protocol=TLSv1 	&& chmod u+x /usr/local/bin/twit 	&& mkdir /lib64 	&& ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 	&& apk del $buildDeps' returned a non-zero code: 4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.