I could do
mlflow model serve -m <RUN_ID> --p 1234 --no-conda
and
mlflow sagemaker run-local -m <MODEL_PATH> -p 1234
Are they not the same anyway as both can do model serving so what's the hassle deploying it to Sagemaker?
I'm a beginner at this so if anyone can help me out with my understanding that will be great. Thank you so much in advance!
Related
Currently we use circleci for build and deployment and we are moving from circleci to github actions and I'm struck on one specific step.
In circleci we connect to our production redshift database and execute bunch of SQL Queries. How I do the same using github action.
Currently in circleci, we use middleman node
&connect_to_middleman_aws_node
run:
name: Connects to middleman node to forward conection to redshift
command: | # Remember to use virtual-env
source /tmp/python_venv/bin/activate
ssh -nNT -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -L $REDSHIFT_PORT:$REDSHIFT_HOST:$REDSHIFT_PORT ubuntu#airflow.xxxxxxx.com
background: true
add_ssh_keys:
fingerprints:
- "0a:6e:61:b9:19:43:93:5c:8c:4c:7c:fc:6e:aa:74:89"
What is the equivalent in Github action. If anyone has done this, can you please me the sample code.
See the logs of: https://travis-ci.com/Jeff-Tian/uni-sso/builds/147317611
I created a travis CI project, that uses mongodb service. And it then runs a docker which from inside will connect that mongodb. But as the log shows, it will fail.
I tried those MONGO_URI, none of them works:
mongodb://localhost:27017
mongodb://127.0.0.1:27017
mongodb://host.docker.internal:27017
Can anyone shed some light on this? I can't find a solution either from Travis CI document nor google.
Thanks in advance!
more details
I can use mongodb://host.docker.internal:27017 in travis ci unit test, but inside the docker it would fail.
Probably already late for you, but I've managed to find solution for the same problem I had here https://docs.docker.com/network/network-tutorial-host/.
This approach binds docker container directly to the Docker host’s network
My script to run tests in docker container:
script:
- docker run --network host -e CI=true mydocker/api-test npm test
Then, from your test you can access mongodb using this url
mongodb://127.0.0.1:27017/mongo_db_name
I am trying to configure a docker-compose to create a master and slave servers local using WAL to replicate databases, and it is not working, because of some problems in the configuration.
I am receiving this error in the image below:
All my code is here:
https://github.com/Oracy/postgres
To run is just docker-compose up -d
Thanks in advance.
I'm trying to create a webAPI and a Worker process (on Heroku) with Vapor 3, XCode 9.4.1, Swift 4.1 but can't get the solution working that's described in SO "Multiple targets in Vapor Xcode project". The webAPI is working fine but how do I create the Worker ?
Thanks for any advice,
Frank
You should be able to just add a worker and a web process.
web: Run serve --env production --hostname 0.0.0.0 --port $PORT
worker: NameOfYourWorkerHere
I'm pretty sure heroku let's you start multiple processes in this way, if not, you might have to spin up two instances, one for the worker, one for the web.
I am trying to deploy a Scala based application to dokku, the application runs a http server and a customised sshd server.
The problem I have is it seems that dokku only supports one port for the application.
I need dokku to expose both my applications ports to the web.
In docker this is possible and quite straight forward to do, but when I implement the same technique in the dokku file, I get an error.
Any suggestions on allowing two ports to be accessible?
Since this is, after all, docker, you can use an ambassador...
You will need a line like:
docker run -t -i -link mysql:mysql -name mysql_ambassador -p 3306:3306 ctlc/ambassador
Replacing with your port and mysql with your container name (from docker images)
See https://www.ctl.io/developers/blog/post/deploying-multi-server-docker-apps-with-ambassadors
NOTE: Make sure you docker pull svendowideit/ambassador:latest before...