Giter VIP home page Giter VIP logo

Comments (5)

jsferreira avatar jsferreira commented on May 30, 2024 1

@zachgrayio

That fixes the problem ( branch: feature/fix-docker )

from swift-tensorflow-starter.

zachgrayio avatar zachgrayio commented on May 30, 2024

I have the Dockerfile copying just the package and then running swift package update so that the package and dependencies can be cached in a separate layer, in a desire to optimize build times.

@jsferreira - It's odd you're seeing an error here; what version of docker and OS are you running? I'm OK with fixing this if needed but I'd like to understand exactly what the issue is first.

from swift-tensorflow-starter.

jsferreira avatar jsferreira commented on May 30, 2024

@zachgrayio

$ docker --version
Docker version 18.03.1-ce, build 9ee9f40
$ uname -v
Darwin Kernel Version 17.5.0: Mon Mar  5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64
$ docker build -t sts-application .
Sending build context to Docker daemon  146.9kB
Step 1/11 : FROM zachgray/swift-tensorflow:4.2
4.2: Pulling from zachgray/swift-tensorflow
ae79f2514705: Pull complete
c59d01a7e4ca: Pull complete
41ba73a9054d: Pull complete
f1bbfd495cc1: Pull complete
0c346f7223e2: Pull complete
d60f8552428d: Pull complete
3e1327d4e5de: Pull complete
Digest: sha256:3dfa1525f0c4c143f385bc45f3ecbb216f3547d25109417c4d73f1fb9a4293ab
Status: Downloaded newer image for zachgray/swift-tensorflow:4.2
 ---> da03cdc15d43
Step 2/11 : LABEL Description="An STS Application"
 ---> Running in 57e5fae19b39ee
Removing intermediate container 57e5fae19b39
 ---> 502208cbbe6d
Step 3/11 : COPY Package.swift /usr/src
 ---> 3de3e664a469
Step 4/11 : RUN swift package update
 ---> Running in 5b699e63849a
error: root manifest not found
The command '/bin/sh -c swift package update' returned a non-zero code: 1

Cheers!

from swift-tensorflow-starter.

zachgrayio avatar zachgrayio commented on May 30, 2024

Great I'll take a look

from swift-tensorflow-starter.

zachgrayio avatar zachgrayio commented on May 30, 2024

@jsferreira I must have a layer cached that's keeping me from reproducing this but I think I see the issue.

I initially had this all set up with the intention of always using volumes to bring the source in and then changed course a bit and as a result of caching don't think I adequately exercised the dockerfile changes.

Do you mind giving this branch a try? https://github.com/zachgrayio/swift-tensorflow-starter/tree/feature/fix-docker

from swift-tensorflow-starter.

Related Issues (9)

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.