Sybase docker image for local dev only.
For a dev usage a licence should be used and mounted in the container. The docker image is only valid for a short period.
docker run --rm -it --name sybase -e SA_PASSWORD=Sybase1234 -e DATABASE=hello -p 5000:5000 -v $(pwd)/init/:/docker-entrypoint-initdb.d/ superbeeeeeee/docker-sybase
services:
database:
image: superbeeeeeee/docker-sybase
pull_policy: always
environment:
- DATABASE=hello
- SA_PASSWORD=Sybase1234
volumes:
- ./init/:/docker-entrypoint-initdb.d/
ports:
- 5000:5000
healthcheck:
test: healthcheck
interval: 5s
run the docker-compose example: basic example
1️⃣ Run the demo
cd examples/basic/
docker compose down --remove-orphans -v --rmi local && docker compose up
2️⃣ Run a basic query
. /opt/sap/SYBASE.sh && echo -e "select top 10 * from TEST_TABLE\ngo" | isql -Usa -P${SA_PASSWORD} -D${DATABASE}
3️⃣ Run isql
docker compose exec -it database sh
. /opt/sap/SYBASE.sh
isql -Usa
sp_helpdb
go
sp_helpdb TESTDB
go
use TESTDB
go
sp_tables
go
sp_help TEST_TABLE
go