Skip to content
Merged
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
81 changes: 40 additions & 41 deletions .github/workflows/build-push.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Parseable Docker build and push
name: Integration tests

on:
push:
branches: ['main']
pull_request:
paths-ignore:
- 'docs/**'
- 'helm/**'
Expand All @@ -15,17 +14,17 @@ env:

jobs:

# docker-compose-test:
# name: Docker Compose integration tests
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Start compose
# run: docker-compose -f "docker-compose.yaml" up --build
# - name: Stop compose
# if: always()
# run: docker-compose -f "docker-compose.yaml" down
docker-compose-test:
name: Docker Compose integration tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Start compose
run: docker-compose -f "docker-compose.yaml" up --build
- name: Stop compose
if: always()
run: docker-compose -f "docker-compose.yaml" down

# docker-build:
# name: Docker build
Expand All @@ -36,30 +35,30 @@ jobs:
# - name: Build Docker image
# run: docker build .

build-and-push-image:
name: Build and push Docker image to GitHub Container Registry
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# build-and-push-image:
# name: Build and push Docker image to GitHub Container Registry
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Log in to the Container registry
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
# with:
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# - name: Build and push Docker image
# uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
# with:
# context: .
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Parseable CI Workflow
name: Linter

on:
pull_request:
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.


FROM rust:slim-bullseye as builder
# build stage
FROM rust:1.67.0-bullseye as builder

LABEL org.opencontainers.image.title="Parseable"
LABEL maintainer="Parseable Team <[email protected]>"
LABEL org.opencontainers.image.vendor="Cloudnatively Pvt Ltd"
LABEL org.opencontainers.image.licenses="AGPL-3.0"

WORKDIR /parseable

COPY . .
RUN cargo build --release

# final stage
FROM gcr.io/distroless/cc-debian11:nonroot

WORKDIR /parseable
Expand Down
17 changes: 8 additions & 9 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ networks:
driver: bridge

services:

minio:
image: minio/minio:RELEASE.2023-02-10T18-48-39Z
entrypoint:
Expand All @@ -31,11 +30,10 @@ services:
- parseable-internal

parseable:
image: parseablehq/parseable:v0.2.1
# build:
# context: .
# dockerfile: Dockerfile
# command: ["parseable", "s3-store"]
build:
context: .
dockerfile: Dockerfile
command: ["parseable", "s3-store"]
ports:
- 8000
environment:
Expand All @@ -45,8 +43,9 @@ services:
- P_S3_REGION=us-east-1
- P_S3_BUCKET=parseable
- P_STAGING_DIR=/tmp/data
- P_USERNAME=admin
- P_PASSWORD=admin
- P_USERNAME=parseableadmin
- P_PASSWORD=parseableadmin
- P_CHECK_UPDATE=false
networks:
- parseable-internal
healthcheck:
Expand All @@ -59,7 +58,7 @@ services:

quest:
image: ghcr.io/parseablehq/quest:main
command: ["smoke", "http://parseable:8000", "admin", "admin"]
command: ["smoke", "http://parseable:8000", "parseableadmin", "parseableadmin"]
networks:
- parseable-internal
depends_on:
Expand Down