Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting with localstack - possible to run in a docker container with no python installed locally? #986

Closed
ababkin opened this issue Oct 28, 2018 · 5 comments

Comments

@ababkin
Copy link

commented Oct 28, 2018

Hi
From reading the instructions in the readme, it looks like one needs a python env in order to run localstack either locally or in a container.
I however would like to keep my local machine completely python-free, so would like to know how to go about containerizing all parts that require python.

Thank you

@mhmoudgmal

This comment has been minimized.

Copy link
Contributor

commented Nov 2, 2018

You don't need python installed if you use the localstack docker image, check https://github.com/localstack/localstack/blob/master/docker-compose.yml

you can also not use docker-compose but you need to transform the docker-compose file to bash command.

hint:

docker run -d -p "4567-4583:4567-4583"                        \
             -p $LOCALSTACK_PORT_WEB_UI:$LOCALSTACK_PORT_WEB_UI \
             -v $LOCALSTACK_TMPDIR:$LOCALSTACK_TMPDIR           \
             -v /var/run/docker.sock:/var/run/docker.sock       \
             -e SERVICES=$LOCALSTACK_SERVICES                   \
             -e DEBUG=$LOCALSTACK_DEBUG                         \
             -e DATA_DIR=$LOCALSTACK_DATA_DIR                   \
             -e PORT_WEB_UI=$LOCALSTACK_PORT_WEB_UI             \
             -e LAMBDA_EXECUTOR=$LOCALSTACK_LAMBDA_EXECUTOR     \
             -e KINESIS_ERROR_PROBABILITY=$LOCALSTACK_KINESIS_ERROR_PROBABILITY   \
             -e DYNAMODB_ERROR_PROBABILITY=$LOCALSTACK_DYNAMODB_ERROR_PROBABILITY \
             -e DOCKER_HOST=unix:///var/run/docker.sock \
             --name my_localstack \
             localstack/localstack
@ababkin

This comment has been minimized.

Copy link
Author

commented Nov 2, 2018

will try this, thank you!

@suryacaprice

This comment has been minimized.

Copy link

commented Nov 22, 2018

when running docker with this command

docker: invalid publish opts format (should be name=value but got '4567-4583:4567-4583').
See 'docker run --help'.

@Minakami92

This comment has been minimized.

Copy link

commented Apr 21, 2019

I have the same problem.

$ docker run -itd -p 10080:80 -p 100443:443 --name ubuntu ubuntu-bionic
docker: invalid publish opts format (should be name=value but got '10080:80').
See 'docker run --help'.

Please help me!

@Allen2Git

This comment has been minimized.

Copy link

commented Jun 2, 2019

I have the same problem.

$ docker run -itd -p 10080:80 -p 100443:443 --name ubuntu ubuntu-bionic
docker: invalid publish opts format (should be name=value but got '10080:80').
See 'docker run --help'.

Please help me!

The TCP port should be in 0~65535, please change 100443 to less than 65535 for example 6443 to go ahead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.