Giter VIP home page Giter VIP logo

swift-ubuntu-docker's Issues

Volume Mount

I was wondering if it would be interesting to add VOLUME key within the docker file to allow user to mount a local volume.
It would be interesting eg. to allow a mac user to edit locally his file and use only the docker env to compile and test like a sandbox.

Dunno like it happens in other docks mount a volume like

/data/swift

Thanks!

Thanks for supporting Kitura Ubuntu Swift Docker images. I just switched over to using them. It did take me a bit of searching to find them. Is this repo linked to the main Kitura repos? (I didn't see such links).

Cannot open shared object file in 18.04 (libFoundation.so)

Hello,
I have similar problem with #56 . Maybe I made something wrong.
I try to launch a binary release swift file.

My Dockerfile:
FROM ibmcom/swift-ubuntu-runtime:latest COPY . /app CMD ["/app/server"]

I have error:
/app/server: error while loading shared libraries: libFoundation.so: cannot open shared object file: No such file or directory

Can you help with it?

swift-slim ?

Hi,

Is there any interest in building a docker container with the swift dependencies built into a statically compiled binary? 1.2GB from ubuntu guts and the full gcc buildchain is kind of rough.

Tagged Docker Images

Thanks for providing a Docker image for Kitura-based apps. I was wondering if you could tag your Docker images so that developers can update their environment independently of Kitura releases.

For example, I used Kitura with swift-DEVELOPMENT-SNAPSHOT-2016-07-25-a for a while before I was able to upgrade to more recent versions of Swift. Meanwhile, the Docker image started using a newer version of Swift, which broke my Docker build referencing ibmcom/swift-ubuntu:latest.

My suggestion would be to tag the Docker images with the Swift version they are based on.

Cannot open shared object file in 16.04

Hi,

I tested the https://github.com/IBM-Swift/Kitura-Sample with the 16.04-runtime image, but it doesn't work, the 14.04-runtime image is working.
The error happens when I want to run the docker-image, I get the following error:

error while loading shared libraries: libicuuc.so.52: cannot open shared object file: No such file or directory

I used the following dockerfile within the kitura-sample project:

# ===== builder =====
FROM ibmcom/swift-ubuntu-xenial-amd64:4.1 as builder

RUN mkdir -p /appcode
COPY Sources /appcode/Sources
COPY Tests /appcode/Tests
COPY Package.swift /appcode/
RUN cd /appcode && swift build --configuration release

# ===== runtime =====
FROM ibmcom/swift-ubuntu-xenial-runtime-amd64:4.1

USER root

# Expose default port for Kitura
EXPOSE 8080

COPY --from=builder /appcode/.build/release /apps/kitura/.build/release/
COPY public /apps/kitura/public
COPY chat /apps/kitura/chat
COPY Views /apps/kitura/Views

ENTRYPOINT [ "sh", "-c", "cd /apps/kitura && .build/release/Kitura-Sample" ]

When I use FROM ibmcom/swift-ubuntu:4.1 as builder and FROM ibmcom/swift-ubuntu-runtime:4.1 everything is working.

I tried to debug it a little bit. It looks like the problem is, that the runtime-image is deleting the files in the following directory:

swift-4.1-RELEASE-ubuntu16.04/usr/lib/swift/linux/*

(I tried to extract them back from the swift-tar, than it worked. But I don't know if this would be the right solution, because the 14.04 image is doing the same)

clone_build_kitura.sh doesn't exist where expected in last image

I'm following the steps here:
http://www.kitura.io/en/starter/deploying.html

According to this line:

From within the Docker container, execute the clone_build_kitura.sh script to build the Kitura-Starter sample project:

There should be a clone_build_kitura.sh file in /root/ of the container.

$ docker image ls
ibmcom/kitura-ubuntu   latest              2ce2120d8fe2        12 days ago         1.24 GB
$ docker run -ti -p 8090:8090 ibmcom/kitura-ubuntu:latest /bin/bash
# ls root/
Kitura-Starter  swift-3.0.2-RELEASE-ubuntu14.04

Update to Ubuntu 16.04 LTS?

Want to run perfect.org, but for ubuntu 14 I have to patch openssl to 1.0.2 (manually without apt-get) to get things working. It's not necessary when ubuntu 16 base image is used.

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.