Skip to content

Commit

Permalink
Merge pull request #3 from it-at-m/ImageImprovements
Browse files Browse the repository at this point in the history
Image improvements
  • Loading branch information
ejcsid authored Aug 8, 2024
2 parents 3cd5414 + 77a8dab commit 3183c22
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 58 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
- name: Build image
uses: docker/build-push-action@v5
with:
# context: ./pentaho-carte
push: false
# tags: itatm/pentaho-carte:${{ env.GITHUB_REF_NAME_SLUG }}
tags: itatm/pentaho-carte:latest
25 changes: 13 additions & 12 deletions .github/workflows/release-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: Create and publish Docker image
on:
workflow_dispatch:
inputs:
branch:
description: "Branch to release from ?"
required: true
default: "main"
release-tag:
description: "Release tag ?"
required: true
do_release:
description: "Create Github Release ? (true/false)"
required: true
default: "false"

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -60,11 +60,12 @@ jobs:
# subject-digest: ${{ steps.push.outputs.digest }}
# push-to-registry: true

- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.release-tag }}
draft: false
prerelease: false
generate_release_notes: true
# - name: Create GitHub Release
# id: create_release
# if: inputs.do_release == 'true'
# uses: softprops/action-gh-release@v2
# with:
# tag_name: ${{ github.event.inputs.release-tag }}
# draft: false
# prerelease: false
# generate_release_notes: true
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Covers Eclipse specific:
.settings/
.classpath
.project

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
.idea
*.iml

# Covers Netbeans:
**/nbproject/private/
**/nbproject/Makefile-*.mk
**/nbproject/Package-*.bash
build/
nbbuild/
dist/
nbdist/
.nb-gradle/

3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/penthao-carte.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

20 changes: 10 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@

# Pentaho Directory
RUN mkdir ${PENTAHO_INSTALL}
RUN chmod 775 ${PENTAHO_INSTALL}

WORKDIR ${PENTAHO_INSTALL}

# Download PDI and extract it
RUN curl ${PENTAHO_URL} -o $HOME/pdi-ce-${PDI_VERSION}.zip
RUN cd $PENTAHO_INSTALL && jar -xvf $HOME/pdi-ce-${PDI_VERSION}.zip
RUN jar -xvf $HOME/pdi-ce-${PDI_VERSION}.zip

##################################################################################################
# Second layer: Here is where we create the final image #
Expand All @@ -36,21 +37,20 @@

# Environment settings
ENV PENTAHO_JAVA_HOME=$JAVA_HOME
ENV PENTAHO_HOME=$HOME/pentaho
ENV CARTE_PORT=8080
ENV KETTLE_HOME=${PENTAHO_HOME}/data-integration
ENV KETTLE_HOME=${HOME}/data-integration
ENV PATH=${KETTLE_HOME}:$PATH

# Create PENTAHO_HOME directory
RUN mkdir ${PENTAHO_HOME}
RUN chmod 775 ${PENTAHO_HOME}
# Create PENTAHO_HOME directory and make it writable
RUN mkdir ${KETTLE_HOME} && chmod 775 ${KETTLE_HOME}

WORKDIR ${KETTLE_HOME}

# Copy Pentaho PDI from layer install_unpack to this layer
COPY --from=install_unpack ${PENTAHO_INSTALL}/data-integration/ ${KETTLE_HOME}/
COPY --from=install_unpack --chmod=775 ${PENTAHO_INSTALL}/data-integration/ ${KETTLE_HOME}/

RUN chmod 775 ${KETTLE_HOME}
# Make PDI runnable
RUN chmod 755 ${KETTLE_HOME}/*.sh

# Start Carte Server
RUN cd ${KETTLE_HOME}
CMD ${KETTLE_HOME}/carte.sh ${HOSTNAME} ${CARTE_PORT}
4 changes: 1 addition & 3 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ Use Pentaho Carte Server's [default user and password](https://pentaho-public.a

### Deploying on Kubernetes using a Helm chart

We will provide a Helm Chart for *pentaho-carte* soon under [provided Helm chart][helm-chart-github].

<!-- If you want to deploy pentaho-carte on a Kubernetes cluster, you can use the [provided Helm chart][helm-chart-github].-->
If you want to deploy pentaho-carte on a Kubernetes cluster, you can use the [provided Helm chart][helm-chart-github].

### Configuration

Expand Down

0 comments on commit 3183c22

Please # to comment.