Giter Club home page Giter Club logo

Comments (12)

ianpartridge avatar ianpartridge commented on August 15, 2024

I think adding ARG DEBIAN_FRONTEND=noninteractive to the Dockerfile might be enough to fix the debconf messages.

from swift-nio.

helje5 avatar helje5 commented on August 15, 2024

There are a few others, like the policy-rc.d permission thing above.

from swift-nio.

ianpartridge avatar ianpartridge commented on August 15, 2024

Yes I saw them - just trying to help out with the debconf one :)

from swift-nio.

toffaletti avatar toffaletti commented on August 15, 2024

As of c8d1980 the image built by the Dockerfile doesn't seem to setup the environment correctly. I have to manually source /root/.profile.

~/C/swift-nio (master|…) $ docker run --security-opt seccomp:unconfined -v(pwd):/code -it --rm swiftnio
root@9108f799cf7b:/# env
HOSTNAME=9108f799cf7b
TERM=xterm
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/
SHLVL=1
HOME=/root
LESSOPEN=| /usr/bin/lesspipe %s
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env
root@9108f799cf7b:/# swift
bash: swift: command not found
root@9108f799cf7b:/# source /root/.profile 
root@9108f799cf7b:/# swift --version
Swift version 4.0.2 (swift-4.0.2-RELEASE)
Target: x86_64-unknown-linux-gnu

from swift-nio.

toffaletti avatar toffaletti commented on August 15, 2024

libcurl.so seems to be built / installed incorrectly as well:

root@9108f799cf7b:/code# swift test
/root/.swift/usr/bin/swift-test: /usr/local/lib/libcurl.so.4: no version information available (required by /root/.swift/usr/bin/../lib/swift/linux/libFoundation.so)

from swift-nio.

tomerd avatar tomerd commented on August 15, 2024

@toffaletti try docker run --security-opt seccomp:unconfined -v $(PWD):/code -w /code -it --rm swiftnio /bin/bash -l

from swift-nio.

helje5 avatar helje5 commented on August 15, 2024

It may be crazy to ask in the context of how much other efforts NIO duplicates, but is there a specific reason why this doesn't just use the official Swift docker image as a base?

from swift-nio.

ianpartridge avatar ianpartridge commented on August 15, 2024

AFAIK that image is not "official", but is created and maintained by members of the Swift OSS community. I agree that this is a wheel that shouldn't need to be reinvented though - although we at IBM are also guilty of this... https://github.com/IBM-Swift/swift-ubuntu-docker

from swift-nio.

helje5 avatar helje5 commented on August 15, 2024

Yes, it is community maintained (kinda like Linux Swift Foundation), but AFAIK it is the official, Swift.org approved Swift Docker image.

Look, it even says "OFFICIAL REPOSITORY" 😁: https://hub.docker.com/_/swift/

It would be great if IBM would contribute to this, but this is out of scope for the issue here ;-) For the issue here it would be cool not do redo all the work and rather contribute to the mainline if there is a reason for it.

from swift-nio.

tomerd avatar tomerd commented on August 15, 2024

@helje5 this is an interesting point and requires a separate discussion, do you mind carving out a separate issue to track it, so we can use this one to track your and @toffaletti original hygiene feedback, since it goes beyond which base image we use

from swift-nio.

helje5 avatar helje5 commented on August 15, 2024

OK, here you go: Use official Swift Docker image #143

from swift-nio.

weissi avatar weissi commented on August 15, 2024

closing this for #143. That'll hopefully be a thing soon and we'll use the official one.

from swift-nio.

Related Issues (20)

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.