-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JDBC Support * jdk8 compatible and directions * cleaner error handling * updated Docker image * updated docs
- Loading branch information
1 parent
4971c1d
commit edc2ec1
Showing
55 changed files
with
2,806 additions
and
2,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,57 @@ | ||
# If you prefer the allow list template instead of the deny list, see community template: | ||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore | ||
# | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
|
||
# Go workspace file | ||
go.work | ||
|
||
# ignore the binaries folder | ||
/bin | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
replay_pid* | ||
|
||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
release.properties | ||
dependency-reduced-pom.xml | ||
buildNumber.properties | ||
.mvn/timing.properties | ||
# https://github.com/takari/maven-wrapper#usage-without-binary-jar | ||
.mvn/wrapper/maven-wrapper.jar | ||
|
||
# Eclipse m2e generated files | ||
# Eclipse Core | ||
.project | ||
# JDT-specific (Eclipse Java Development Tools) | ||
.classpath | ||
.factorypath | ||
.settings | ||
|
||
# code coverage output file that is often left behind | ||
coverage.out | ||
|
||
# vscode files | ||
.vscode | ||
|
||
# intellij | ||
|
||
.idea | ||
|
||
# mac directory files | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,9 @@ | ||
FROM --platform=linux/amd64 debian:stable-slim | ||
ARG VERSION=unknown | ||
ARG GIT_SHA=unknown | ||
WORKDIR /app | ||
FROM eclipse-temurin:11 | ||
|
||
COPY . . | ||
RUN mkdir -p /app | ||
WORKDIR /app | ||
COPY . /app | ||
|
||
RUN mkdir build && \ | ||
cd build && \ | ||
apt update -y && \ | ||
apt upgrade -y && \ | ||
apt install -y wget odbcinst unixodbc unixodbc-dev alien && \ | ||
wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz && \ | ||
tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz && \ | ||
ln -s /usr/local/go/bin/go /usr/local/bin/go && \ | ||
wget https://download.dremio.com/arrow-flight-sql-odbc-driver/arrow-flight-sql-odbc-driver-LATEST.x86_64.rpm && \ | ||
alien --scripts $(ls ./arrow-flight-sql-odbc-driver-*) && \ | ||
apt install -y $(ls ./arrow-flight-sql-odbc-driver*.deb) && \ | ||
rm $(ls ./arrow-flight-sql-odbc-driver-*) && \ | ||
cd /usr/lib/x86_64-linux-gnu/ && \ | ||
ln -s libodbcinst.so.2.0.0 libodbcinst.so.1 && \ | ||
ln -s libodbc.so.2.0.0 libodbc.so.1 && \ | ||
ldconfig && \ | ||
cd /app && \ | ||
apt remove -y wget && \ | ||
rm -fr build && \ | ||
go build -tags odbc -ldflags "-X github.com/rsvihladremio/dremio-stress/cmd.GitSha=${GIT_SHA} -X github.com/rsvihladremio/dremio-stress/cmd.Version=${VERSION}" -o /usr/bin/dremio-stress . && \ | ||
apt clean all && \ | ||
rm -rf /var/cache/yum && \ | ||
rm -fr /app | ||
RUN ./mvnw validate && ./mvnw package -Pnative -DskipTests=true && echo "#!/usr/bin/env bash\n_JAVA_OPTIONS='--add-opens=java.base/java.nio=ALL-UNNAMED' java -jar $(ls ./target/dremio-stress-*-jar-with-dependencies.jar) \"\$@\"" >> /usr/bin/dremio-stress && chmod +x /usr/bin/dremio-stress | ||
|
||
ENTRYPOINT ["/usr/bin/dremio-stress"] | ||
CMD ["bash", "/usr/bin/dremio-stress"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.