Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"dockerComposeFile": "docker-compose.yml",
"service": "devcontainer",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"name": "Debian",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"features": {
"ghcr.io/jlaundry/devcontainer-features/mssql-odbc-driver:1": {
"version": "18"
},
"ghcr.io/ahjulstad/mydevcontainerfeatures/mariadb-odbc:latest": {},
"ghcr.io/julialang/devcontainer-features/julia:1.1.1": {
"channel": "beta"
}
},
"containerEnv": {
"JULIA_NUM_THREADS": "4"
},
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-docker",
"julialang.language-julia"
]
}
}
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
49 changes: 49 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: '3.8'
services:
devcontainer:
image: mcr.microsoft.com/devcontainers/base:bullseye
# image: mcr.microsoft.com/devcontainers/base:ubuntu
volumes:
- ../..:/workspaces:cached
- dotjulia:/home/vscode/.julia
network_mode: service:mariadb
command: sleep infinity

mariadb:
image: mariadb:latest
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (this is just an example, not intended to be a production configuration)
# command: --default-authentication-plugin=mysql_native_password
restart: always
networks:
- services_network
environment:
# MYSQL_ROOT_PASSWORD: examplepwd
MYSQL_ALLOW_EMPTY_PASSWORD: 1
ports:
- 3306:3306

msdb:
image: mcr.microsoft.com/mssql/server:2022-preview-ubuntu-22.04
restart: unless-stopped
networks:
- services_network
volumes:
- db-data:/var/lib/postgresql/data
environment:
ACCEPT_EULA: 'Y'
MSSQL_SA_PASSWORD: msSQ_F123
MSSQL_PID: Evaluation
ports:
- 1433:1433

networks:
services_network:
driver: bridge

volumes:
db-data:

dotjulia:
external: true
name: dotjulia
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
fail-fast: false
matrix:
version:
- 1.6
- 1 # automatically expands to the latest stable 1.x release of Julia
- nightly
os:
Expand All @@ -25,6 +24,19 @@ jobs:
curl -O https://downloads.mariadb.com/Connectors/odbc/connector-odbc-3.1.11/mariadb-connector-odbc-3.1.11-ubuntu-focal-amd64.tar.gz
mkdir -p /home/runner/mariadb64
tar xfz mariadb-connector-odbc-3.1.11-ubuntu-focal-amd64.tar.gz -C /home/runner/mariadb64
- run: |
sudo apt-get update
sudo apt-get install -y curl lsb-core

curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list

sudo apt-get update
ACCEPT_EULA=Y sudo apt-get install -y msodbcsql18
- uses: potatoqualitee/[email protected]
with:
install: sqlengine
sa-password: msSQ_F123
- uses: getong/[email protected]
with:
host port: 3306 # Optional, default value is 3306. The port of host
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
CMakeLists.txt.user
config/
test/odbc.log
.vscode/settings.json
Loading