kitura / swift-ubuntu-docker Goto Github PK
View Code? Open in Web Editor NEW๐ซ This repo is deprecated - please use the images here: https://hub.docker.com/_/swift
License: Apache License 2.0
๐ซ This repo is deprecated - please use the images here: https://hub.docker.com/_/swift
License: Apache License 2.0
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
A quick
bx cr image-list
shows images based on swift-ubuntu-runtime
as Vulnerable
.
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).
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?
Automate build, test, and push of the image to DockerHub.
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.
Looks like there's some overlap of efforts here
https://hub.docker.com/search/?isAutomated=0&isOfficial=0&page=1&pullCount=0&q=swift&starCount=0
Consider submitting official image to dockerhub
also noteworthy.
https://hub.docker.com/r/serversideswift/swift/~/dockerfile/
The image is larger than strictly necessary since it includes the installers around after installation. Appending an && apt-get clean
at the end of line 43 can remove the installers, leaving the resulting image a smaller size.
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.
Details coming soon...
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)
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
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.
In the README, this is broken:
https://www.kitura.io/en/starter/gettingstarted.html
The n of RUn
is lowercased in https://github.com/IBM-Swift/swift-ubuntu-docker/blob/16f7f3d94f6bf6af87baa41525a543c66bdeabe8/Dockerfile#L81
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.