Coder Social home page Coder Social logo

docker-hub-frolvlad / docker-alpine-mono Goto Github PK

View Code? Open in Web Editor NEW
49.0 49.0 14.0 24 KB

The smallest Docker image with Mono (~130MB)

Home Page: https://hub.docker.com/r/frolvlad/alpine-mono/

License: MIT License

Dockerfile 100.00%
alpine c-sharp docker-image mono

docker-alpine-mono's People

Contributors

bvanreeven avatar frol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-alpine-mono's Issues

Error relocating /usr/bin/mono: getrandom: symbol not found

When trying to build this image, recently, I have encountered this error:

The command '/bin/sh -c apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing &&    apk add --no-cache --virtual=.build-dependencies ca-certificates &&    cert-sync /etc/ssl/certs/ca-certificates.crt &&    apk del .build-dependencies' returned a non-zero code: 127

Dockerfile is:

  RUN apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing && \
    apk add --no-cache --virtual=.build-dependencies ca-certificates && \
    cert-sync /etc/ssl/certs/ca-certificates.crt && \
    apk del .build-dependencies

Build output is:

Sending build context to Docker daemon  192.4MB
Step 1/2 : FROM alpine:3.8
 ---> 196d12cf6ab1
Step 2/2 : RUN apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing &&    apk add --no-cache --virtual=.build-dependencies ca-certificates &&    cert-sync /etc/ssl/certs/ca-certificates.crt &&    apk del .build-dependencies
 ---> Running in 7e8121548456
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/12) Installing libbz2 (1.0.6-r6)
(2/12) Installing expat (2.2.5-r0)
(3/12) Installing libffi (3.2.1-r4)
(4/12) Installing gdbm (1.13-r1)
(5/12) Installing ncurses-terminfo-base (6.1_p20180818-r1)
(6/12) Installing ncurses-terminfo (6.1_p20180818-r1)
(7/12) Installing ncurses-libs (6.1_p20180818-r1)
(8/12) Installing readline (7.0.003-r0)
(9/12) Installing sqlite-libs (3.24.0-r0)
(10/12) Installing python2 (2.7.15-r1)
(11/12) Installing libgcc (6.4.0-r9)
(12/12) Installing mono (5.10.0.179-r1)
Executing busybox-1.28.4-r1.trigger
OK: 271 MiB in 25 packages
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/2) Installing ca-certificates (20171114-r3)
(2/2) Installing .build-dependencies (0)
Executing busybox-1.28.4-r1.trigger
Executing ca-certificates-20171114-r3.trigger
OK: 271 MiB in 27 packages
Error relocating /usr/bin/mono: getrandom: symbol not found
The command '/bin/sh -c apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing &&    apk add --no-cache --virtual=.build-dependencies ca-certificates &&    cert-sync /etc/ssl/certs/ca-certificates.crt &&    apk del .build-dependencies' returned a non-zero code: 127

This is reproducible on multiple systems one with docker version 17 and one with 18.

CERTIFICATE_VERIFY_FAILED using Microsoft.SharePoint.Client package

Hi there,

first thanks for providing this package! With the new version using the native Alpine Mono Package I get the following error when I try to connect to a Sharepoint instance using the Microsoft.SharePoint.Client package. For now I went back to the old version which works fine, but would be nice to use the new version :)

Thanks,
Andi

Error: TrustFailure (Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED\n at /home/buildozer/aports/testing/mono/src/mono-5.2.0.224/external/boringssl/ssl/handshake_client.c:1132)

mkbundle fails with `cannot find -lmono-2.0`

I'd like to use mkbundle to bundle a static binary with the mono runtime built-in with the following command:

mcs hello.mono
mkbundle --deps --static hello.exe -o hello

I've installed binutils and gcc to set up the compile toolchain for mkbundle. Running the mkbundle command fails with the following message.

OS is: Linux
Sources: 1 Auto-dependencies: True
   embedding: /mnt/hello.exe
   embedding: /usr/lib/mono/4.5/mscorlib.dll
AS = as (default)
[execute cmd]: as -o temp.o temp.s
Compiling:
CC = cc (default)
[execute cmd]: cc -o 'hello' -Wall `pkg-config --cflags mono-2` temp.c  `pkg-config --libs-only-L mono-2` -Wl,-Bstatic -lmono-2.0 -Wl,-Bdynamic `pkg-config --libs-only-l mono-2 | sed -e "s/\-lmono-2.0 //"` temp.o
/usr/lib/gcc/x86_64-alpine-linux-musl/5.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lmono-2.0
collect2: error: ld returned 1 exit status
ERROR: [Fail] 256

Any ideas as to whether this will be possible?

Build for arm64

The image already supports arm, it just needs to be built as such

Error while Building Image from Repository

Hi

I was looking for exactly for mono running in alpine, so first of all: thanks :)

I got an error when building the image from the git repo:

docker build -t teco/alpinemono docker-alpine-mono/
Sending build context to Docker daemon 7.168 kB
Step 1 : FROM frolvlad/alpine-glibc:alpine-3.4
 ---> 5ca96cb41c10
Step 2 : RUN apk add --no-cache --virtual=build-dependencies wget ca-certificates tar xz &&     wget "https://www.archlinux.org/packages/extra/x86_64/mono/download/" -O "/tmp/mono.pkg.tar.xz" &&     tar -xJf "/tmp/mono.pkg.tar.xz" &&     mozroots --import --ask-remove &&     apk del build-dependencies &&     rm /tmp/*
 ---> Running in 3c68da24e929
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
(1/6) Installing wget (1.17.1-r1)
(2/6) Installing ca-certificates (20160104-r4)
(3/6) Installing tar (1.29-r0)
(4/6) Installing xz-libs (5.2.2-r1)
(5/6) Installing xz (5.2.2-r1)
(6/6) Installing build-dependencies (0)
Executing busybox-1.24.2-r9.trigger
Executing ca-certificates-20160104-r4.trigger
Executing glibc-bin-2.23-r3.trigger
OK: 13 MiB in 20 packages
....
 28550K .......... .......... .......... .......... .......... 76%  482K 14s
 28600K .......... .......... .......... .......... .......... 77%  372K 14s
 28650K .......... .......... .......... .......... .......... 77% 6.15M 14s
 28700K .......... .......... .......... .......... .......... 77%  670K 14s
 28750K .......... .......... .......... .......... .......... 77%  499K 14s
....
tar: Ignoring unknown extended header keyword 'SCHILY.fflags'
tar: Ignoring unknown extended header keyword 'SCHILY.fflags'
Mozilla Roots Importer - version 4.4.0.0
Download and import trusted root certificates from Mozilla's MXR.
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.

Downloading from 'http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1'...
Couldn't retrieve the file using the supplied information.
The command '/bin/sh -c apk add --no-cache --virtual=build-dependencies wget ca-certificates tar xz &&     wget "https://www.archlinux.org/packages/extra/x86_64/mono/download/" -O "/tmp/mono.pkg.tar.xz" &&     tar -xJf "/tmp/mono.pkg.tar.xz" &&     mozroots --import --ask-remove &&     apk del build-dependencies &&     rm /tmp/*' returned a non-zero code: 1

Would you have any ideas what went wrong?

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.