Skip to content

ToC-Taiwan/toc-sinopac-python

Repository files navigation

TOC SINOPAC PYTHON

BUILD Python CONTAINER

RELEASE LICENSE

.env

# fill in .env
cp .env.example .env

Make

  • show help
make help
  • initial
make install
  • run
make
  • update dependencies
make update

Development on Apple Silicon

  • Install Rosetta
  • Create a Rosetta terminal
  • Install x86 homebrew in the Rosetta terminal
  • Install x86 Python in the Rosetta terminal
    • python should be installed in /usr/local/bin/python3

vscode setting

  • add x86 terminal to options
  • path: .vscode/settings.json
{
    "terminal.integrated.profiles.osx": {
        "x86 zsh": {
            "path": "/usr/bin/arch",
            "args": [
                "-arch",
                "x86_64",
                "/bin/zsh"
            ]
        }
    },
    "terminal.integrated.defaultProfile.osx": "x86 zsh"
}

setup venv

eval "$(/usr/local/bin/brew shellenv)"
. ./scripts/start_venv.sh

Local RabbitMQ

docker stop toc-rabbitmq
docker system prune --volumes -f
docker rmi -f $(docker images -a -q)

docker run -d \
  --restart always \
  --name toc-rabbitmq \
  -p 5672:5672 \
  -p 15672:15672 \
  -e RABBITMQ_DEFAULT_USER=admin \
  -e RABBITMQ_DEFAULT_PASS=password \
  rabbitmq:3.12.12-management

Authors

About

It is a forwarder for sinopac python api

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages