Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 4c920fe

Browse files
committed
feat(): add databases
1 parent b8de8d3 commit 4c920fe

27 files changed

+5288
-4632
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
FROM --platform=$BUILDPLATFORM node:18.12-alpine3.16 AS client-builder
2+
23
WORKDIR /ui
34
# cache packages in layer
45
COPY ui/package.json /ui/package.json
5-
COPY ui/.yarnrc.yml /ui/.yarnrc.yml
6-
COPY ui/.yarn /ui/.yarn
7-
COPY ui/yarn.lock /ui/yarn.lock
8-
RUN echo "cacheFolder: '/usr/src/app/.npm'" >> /ui/.yarnrc.yml
6+
COPY ui/package-lock.json /ui/package-lock.json
97
RUN --mount=type=cache,target=/usr/src/app/.npm \
10-
yarn install --immutable
8+
npm set cache /usr/src/app/.npm && \
9+
npm ci
1110

1211
# install
1312
COPY ui /ui
14-
RUN yarn build
13+
RUN npm run build
1514

1615
FROM alpine
1716
LABEL org.opencontainers.image.title="Databases" \
@@ -27,3 +26,4 @@ LABEL org.opencontainers.image.title="Databases" \
2726
COPY metadata.json .
2827
COPY docker.svg .
2928
COPY --from=client-builder /ui/build ui
29+
COPY host ./host

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ prepare-buildx: ## Create buildx builder for multi-arch build, if not exists
2121
push-extension: prepare-buildx ## Build & Upload extension image to hub. Do not push if tag already exists: make push-extension tag=0.1
2222
docker pull $(IMAGE):$(TAG) && echo "Failure: Tag already exists" || docker buildx build --push --builder=$(BUILDER) --platform=linux/amd64,linux/arm64 --build-arg TAG=$(TAG) --tag=$(IMAGE):$(TAG) .
2323

24+
dev-up:
25+
docker extension dev ui-source $(IMAGE):$(TAG) http://localhost:3000
26+
docker extension dev debug $(IMAGE):$(TAG)
27+
28+
dev-reset:
29+
docker extension dev reset $(IMAGE):$(TAG)
30+
2431
help: ## Show this help
2532
@echo Please specify a build target. The choices are:
2633
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "$(INFO_COLOR)%-30s$(NO_COLOR) %s\n", $$1, $$2}'

host/darwin-amd64/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016-2022 Kenneth Shaw
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

host/darwin-amd64/usql

99.9 MB
Binary file not shown.

host/linux-amd64/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016-2022 Kenneth Shaw
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

host/linux-amd64/usql

27.2 MB
Binary file not shown.

host/windows-amd64/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016-2022 Kenneth Shaw
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

host/windows-amd64/usql.exe

24.1 MB
Binary file not shown.

metadata.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,26 @@
99
"socket": "backend.sock"
1010
}
1111
}
12+
},
13+
"host": {
14+
"binaries": [
15+
{
16+
"darwin": [
17+
{
18+
"path": "/host/darwin-amd64/usql"
19+
}
20+
],
21+
"linux": [
22+
{
23+
"path": "/host/linux-amd64/usql"
24+
}
25+
],
26+
"windows": [
27+
{
28+
"path": "/host/windows-amd64/usql.exe"
29+
}
30+
]
31+
}
32+
]
1233
}
1334
}

ui/.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
yarnPath: .yarn/releases/yarn-3.3.1.cjs
2+
# disable yarn PnP
3+
nodeLinker: node-modules

0 commit comments

Comments
 (0)