Skip to content

Commit

Permalink
update build essential scripts and reorganize
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishaan-Datta committed Sep 1, 2024
1 parent 77d7c34 commit 99585a3
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 25 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,16 @@ on:
description: "The latest docker image version"
value: ${{ jobs.build.outputs.container_version }}
inputs:
branch:
required: false
default: main
type: string
deployment:
required: false
required: true
default: true
type: boolean

workflow_dispatch:
inputs:
branch:
description: 'Which branch would you like to compile and upload?'
required: false
default: main
type: string
deployment:
description: 'Would you like to run unit and benchmarking tests?'
required: false
description: 'Run unit and benchmarking tests?'
required: true
default: false
type: boolean

Expand All @@ -41,6 +32,9 @@ jobs:
outputs:
container_version: ${{ steps.get_next_version.outputs.version }}
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -69,12 +63,11 @@ jobs:
echo "version=$NEXT_VERSION" >> $GITHUB_OUTPUT
fi
# context needs to be sorted
# - name: Build and push multi-platform Docker image
# uses: docker/build-push-action@v4
# uses: docker/build-push-action@v6
# with:
# # context: '.'
# # context: .
# push: true
# tags: 'agrobotappliedai/jetson_ros:${ github.events.inputs.branch }-latest', 'agrobotappliedai/jetson_ros:${ github.events.inputs.branch }-v${ steps.get_next_version.outputs.version }'
# tags: ["agrobotappliedai/jetson_ros:${{ github.ref_name }}-latest", "agrobotappliedai/jetson_ros:${{ github.ref_name }}-v${{ steps.get_next_version.outputs.version }}"]
# platforms: linux/amd64,linux/arm64
# file: Dockerfile
# file: ./Container/Jetson.Dockerfile
14 changes: 7 additions & 7 deletions Container/scripts/install-build-essential.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ set -ex
echo 'installing build-essential'

apt -y update && apt -y upgrade
apt-get install -y --no-install-recommends
locales \
locales-all \
tzdata \
locale-gen en_US $LANG
update-locale LC_ALL=$LC_ALL LANG=$LANG
locale
# apt-get install -y --no-install-recommends
# locales \
# locales-all \
# tzdata \
# locale-gen en_US $LANG
# update-locale LC_ALL=$LC_ALL LANG=$LANG
# locale
apt-get install -y --no-install-recommends \
build-essential \
software-properties-common \
Expand Down
Empty file added Misc Scripts/benchmarking.sh
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion pre-job-script.sh → Misc Scripts/pre-job-script.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Step 1: List all Docker images and filter those with tags that do not end with "-latest"
images_to_remove=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep -v ":latest$")
images_to_remove=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep "^jetson_ros:" | grep -v ":latest$")

# Step 2: Loop through the list and remove each image
for image in $images_to_remove; do
Expand Down
Empty file added Misc Scripts/unit-tests.sh
Empty file.

0 comments on commit 99585a3

Please sign in to comment.