rickwierenga / heartbeat-tutorials

Code for tutorials I have written for Heartbeat
https://heartbeat.fritz.ai/@rickwierenga
MIT License
136 stars 73 forks source link

Docker #4

Closed flooie closed 3 years ago

flooie commented 3 years ago

Is it possible to build all of this inside a docker container?

dhairya137 commented 3 years ago

Not everything in one container. But you can upload every thing one by one as image on one repository

flooie commented 3 years ago

Sorry that was a bit of a terrible question.

I've been trying to build the CoreML API Dockerfile locally. I want to test using an image classifier inside a docker container from your tutorial. When I build the Dockerfile it always crashes at the same spot ---

Step 7/15 : RUN swift build -c release && mvswift build -c release --show-bin-path/build/bin

/app/Sources/App/Controllers/Classifier.swift:8:8: error: no such module 'CoreImage' import CoreImage ^ The command '/bin/sh -c swift build -c release && mvswift build -c release --show-bin-path/build/bin' returned a non-zero code: 1

I'm clearly missing something about integrating apples framework into the docker container. Any idea what I'm doing wrong?

rickwierenga commented 3 years ago

Hi, the Dockerfile was taken from here. CoreImage is a proprietary framework from Apple so I guess it will only work on Apple devices. AWS offers Mac instances (see this) but I have never used those personally.

flooie commented 3 years ago

@rickwierenga thanks that clears things up for me.