forked from DependencyTrack/dependency-track
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from DependencyTrack/master
Update from dependency-track
- Loading branch information
Showing
22 changed files
with
1,866 additions
and
372 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 |
---|---|---|
|
@@ -63,6 +63,7 @@ body: | |
- 4.7.x | ||
- 4.8.0 | ||
- 4.8.1 | ||
- 4.8.2 | ||
- 4.9.0-SNAPSHOT | ||
validations: | ||
required: true | ||
|
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,16 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Compose (w/ MSSQL)" type="docker-deploy" factoryName="docker-compose.yml" server-name="Docker"> | ||
<deployment type="docker-compose.yml"> | ||
<settings> | ||
<option name="envFilePath" value="" /> | ||
<option name="secondarySourceFiles"> | ||
<list> | ||
<option value="dev/docker-compose.mssql.yml" /> | ||
</list> | ||
</option> | ||
<option name="sourceFilePath" value="dev/docker-compose.yml" /> | ||
</settings> | ||
</deployment> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,16 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Compose (w/ Postgres)" type="docker-deploy" factoryName="docker-compose.yml" server-name="Docker"> | ||
<deployment type="docker-compose.yml"> | ||
<settings> | ||
<option name="envFilePath" value="" /> | ||
<option name="secondarySourceFiles"> | ||
<list> | ||
<option value="dev/docker-compose.postgres.yml" /> | ||
</list> | ||
</option> | ||
<option name="sourceFilePath" value="dev/docker-compose.yml" /> | ||
</settings> | ||
</deployment> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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
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,63 @@ | ||
# This file is part of Dependency-Track. | ||
# | ||
# Licensed 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. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) Steve Springett. All Rights Reserved. | ||
services: | ||
apiserver: | ||
environment: | ||
ALPINE_METRICS_ENABLED: "true" | ||
|
||
prometheus: | ||
image: prom/prometheus:v2.37.8 | ||
entrypoint: /bin/sh | ||
command: | ||
- -c | ||
- >- | ||
echo -e "$$PROMETHEUS_CONFIG_FILE" > /etc/prometheus/prometheus.yml; | ||
/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus | ||
environment: | ||
PROMETHEUS_CONFIG_FILE: |- | ||
scrape_configs: | ||
- job_name: dtrack-apiserver | ||
scrape_interval: 15s | ||
scheme: http | ||
dns_sd_configs: | ||
- names: | ||
- apiserver | ||
type: A | ||
port: 8080 | ||
ports: | ||
- "127.0.0.1:9090:9090" | ||
volumes: | ||
- "prometheus-data:/prometheus" | ||
restart: unless-stopped | ||
|
||
grafana: | ||
image: grafana/grafana-oss:9.5.2 | ||
depends_on: | ||
- prometheus | ||
environment: | ||
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin" | ||
GF_AUTH_ANONYMOUS_ENABLED: "true" | ||
GF_AUTH_BASIC_ENABLED: "false" | ||
ports: | ||
- "127.0.0.1:3000:3000" | ||
volumes: | ||
- "grafana-data:/var/lib/grafana" | ||
restart: unless-stopped | ||
|
||
volumes: | ||
grafana-data: { } | ||
prometheus-data: { } |
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,66 @@ | ||
# This file is part of Dependency-Track. | ||
# | ||
# Licensed 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. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) Steve Springett. All Rights Reserved. | ||
services: | ||
apiserver: | ||
depends_on: | ||
mssql-init: | ||
condition: service_completed_successfully | ||
environment: | ||
ALPINE_DATABASE_MODE: "external" | ||
ALPINE_DATABASE_URL: "jdbc:sqlserver://mssql:1433;databaseName=dtrack;sendStringParametersAsUnicode=false;trustServerCertificate=true" | ||
ALPINE_DATABASE_DRIVER: "com.microsoft.sqlserver.jdbc.SQLServerDriver" | ||
ALPINE_DATABASE_USERNAME: "sa" | ||
ALPINE_DATABASE_PASSWORD: "DTrack1234#" | ||
|
||
mssql: | ||
image: mcr.microsoft.com/mssql/server:2022-latest | ||
platform: "linux/amd64" # arm64 is not supported | ||
environment: | ||
ACCEPT_EULA: "Y" | ||
MSSQL_SA_PASSWORD: "DTrack1234#" | ||
healthcheck: | ||
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$$MSSQL_SA_PASSWORD" -Q "SELECT 1" -b -o /dev/null | ||
interval: 15s | ||
timeout: 3s | ||
retries: 10 | ||
start_period: 10s | ||
ports: | ||
- "127.0.0.1:1433:1433" | ||
volumes: | ||
- "mssql-data:/var/opt/mssql" | ||
restart: unless-stopped | ||
|
||
mssql-init: | ||
image: mcr.microsoft.com/mssql/server:2022-latest | ||
platform: "linux/amd64" # arm64 is not supported | ||
depends_on: | ||
mssql: | ||
condition: service_healthy | ||
command: | ||
- /opt/mssql-tools/bin/sqlcmd | ||
- -S | ||
- mssql | ||
- -U | ||
- sa | ||
- -P | ||
- DTrack1234# | ||
- -Q | ||
- CREATE DATABASE dtrack | ||
restart: on-failure | ||
|
||
volumes: | ||
mssql-data: { } |
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,41 @@ | ||
# This file is part of Dependency-Track. | ||
# | ||
# Licensed 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. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) Steve Springett. All Rights Reserved. | ||
services: | ||
apiserver: | ||
depends_on: | ||
- postgres | ||
environment: | ||
ALPINE_DATABASE_MODE: "external" | ||
ALPINE_DATABASE_URL: "jdbc:postgresql://postgres:5432/dtrack" | ||
ALPINE_DATABASE_DRIVER: "org.postgresql.Driver" | ||
ALPINE_DATABASE_USERNAME: "dtrack" | ||
ALPINE_DATABASE_PASSWORD: "dtrack" | ||
|
||
postgres: | ||
image: postgres:14-alpine | ||
environment: | ||
POSTGRES_DB: "dtrack" | ||
POSTGRES_USER: "dtrack" | ||
POSTGRES_PASSWORD: "dtrack" | ||
ports: | ||
- "127.0.0.1:5432:5432" | ||
volumes: | ||
- "postgres-data:/var/lib/postgresql/data" | ||
restart: unless-stopped | ||
|
||
volumes: | ||
postgres-data: { } |
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,37 @@ | ||
# This file is part of Dependency-Track. | ||
# | ||
# Licensed 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. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) Steve Springett. All Rights Reserved. | ||
name: "dependency-track" | ||
|
||
services: | ||
apiserver: | ||
image: dependencytrack/apiserver:snapshot | ||
ports: | ||
- "127.0.0.1:8080:8080" | ||
volumes: | ||
- "apiserver-data:/data" | ||
restart: unless-stopped | ||
|
||
frontend: | ||
image: dependencytrack/frontend:snapshot | ||
environment: | ||
API_BASE_URL: "http://localhost:8080" | ||
ports: | ||
- "127.0.0.1:8081:8080" | ||
restart: unless-stopped | ||
|
||
volumes: | ||
apiserver-data: { } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.