Compare commits
	
		
			3 commits
		
	
	
		
			24b84b79ae
			...
			9899ce98f7
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 9899ce98f7 | ||
|  | f19e17221b | ||
|  | f977c4ebc9 | 
					 11 changed files with 9 additions and 242 deletions
				
			
		|  | @ -1,38 +0,0 @@ | |||
| 
 | ||||
| $schema: https://github.com/SchemaStore/schemastore/raw/master/src/schemas/json/github-workflow.json | ||||
| 
 | ||||
| on: | ||||
|   push: | ||||
|     branches: ['master'] | ||||
|     paths: | ||||
|       - "fedora-40/**" | ||||
|       - "fedora-40-minimal/**" | ||||
|       - "shared/**" | ||||
|       - ".forgejo/workflows/build-fedora-40.yml" | ||||
|   schedule: | ||||
|     - cron: "0 0 * * 3" # Every Thursday 00:00 | ||||
| 
 | ||||
| 
 | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: fedora-40 | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v3 | ||||
|       - name: Setup Bun | ||||
|         uses: oven-sh/setup-bun@v2 | ||||
|         with: | ||||
|           bun-version-file: 'package.json' | ||||
|       - name: Fulfill Package Manager Cache | ||||
|         run: dnf makecache -y --releasever 40 | ||||
|       - name: Sign in to Image Index | ||||
|         run: buildah login code.lightstands.xyz --username ${{ env.GITHUB_ACTOR }} --password ${{ secrets.PUBLICATION_TOKEN }} | ||||
|       - name: Build Minimal Images | ||||
|         run: DNF_CACHE_PATH=/var/cache/dnf bun shared/build-image.ts code.lightstands.xyz/standcoded/fedora-minimal:40 fedora-40-minimal arm64 | ||||
|       - name: Push Minimal Images | ||||
|         run: buildah manifest push code.lightstands.xyz/standcoded/fedora-minimal:40 --all | ||||
|       - name: Build Complete Images | ||||
|         run: DNF_CACHE_PATH=/var/cache/dnf bun shared/build-image.ts code.lightstands.xyz/standcoded/fedora:40 fedora-40 arm64 | ||||
|       - name: Push Complete Images | ||||
|         run: buildah manifest push code.lightstands.xyz/standcoded/fedora:40 --all | ||||
| 
 | ||||
|  | @ -1,6 +1,3 @@ | |||
| 
 | ||||
| $schema: https://github.com/SchemaStore/schemastore/raw/master/src/schemas/json/github-workflow.json | ||||
| 
 | ||||
| on: | ||||
|   push: | ||||
|     branches: ['master'] | ||||
|  | @ -15,7 +12,7 @@ on: | |||
| 
 | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: fedora-40 | ||||
|     runs-on: fedora-41 | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v3 | ||||
|  |  | |||
							
								
								
									
										
											BIN
										
									
								
								bun.lockb
									
										
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								bun.lockb
									
										
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -1,19 +0,0 @@ | |||
| FROM fedora:40 | ||||
| 
 | ||||
| RUN sh /imgbuild/fedora/instpkgs-minimal.sh | ||||
| 
 | ||||
| # We don't clean up dnf cache since user may want to install packages for their use | ||||
| 
 | ||||
| ADD containers.conf /etc/containers/ | ||||
| 
 | ||||
| RUN sh /imgbuild/configure-nested-container.sh | ||||
| 
 | ||||
| VOLUME /var/lib/containers | ||||
| VOLUME /home/action/.local/share/containers | ||||
| 
 | ||||
| # Set up environment variables to note that this is | ||||
| # not starting with usernamespace and default to | ||||
| # isolate the filesystem with chroot. | ||||
| ENV _BUILDAH_STARTED_IN_USERNS="" BUILDAH_ISOLATION=chroot | ||||
| 
 | ||||
| ENTRYPOINT [ "/bin/bash" ] | ||||
|  | @ -1,64 +0,0 @@ | |||
| # fedora-minimal:40 | ||||
| 
 | ||||
| ```yaml | ||||
| container: | ||||
|   image: code.lightstands.xyz/standcoded/fedora-minimal:40 | ||||
| ``` | ||||
| 
 | ||||
| ## Included Softwares | ||||
| 
 | ||||
| ### General | ||||
| 
 | ||||
| - coreutils | ||||
| - bash | ||||
| - aria2 | ||||
| - jq | ||||
| - yq | ||||
| - zstd | ||||
| - brotil | ||||
| - sqlite | ||||
| 
 | ||||
| ### Version Control | ||||
| 
 | ||||
| - git | ||||
| - git-lfs | ||||
| - git-ftp | ||||
| 
 | ||||
| ### Container Management | ||||
| 
 | ||||
| - podman | ||||
| - buildah | ||||
| - fuse-overlayfs | ||||
| 
 | ||||
| ### NodeJS | ||||
| 
 | ||||
| - nodejs | ||||
| - nodejs-npm | ||||
| 
 | ||||
| ### Python | ||||
| 
 | ||||
| - python3 | ||||
| - python3-devel | ||||
| - python3-pip | ||||
| - pipx | ||||
| 
 | ||||
| ### Perl | ||||
| 
 | ||||
| - perl | ||||
| - perl-CPAN | ||||
| 
 | ||||
| ### Ruby | ||||
| 
 | ||||
| - ruby | ||||
| - rubygems | ||||
| 
 | ||||
| ### C | ||||
| 
 | ||||
| - clang | ||||
| - gcc | ||||
| 
 | ||||
| ## Additional Configuration | ||||
| 
 | ||||
| ### Building Container Images | ||||
| 
 | ||||
| This images configured buildah to be correctly run under a container. You can use [The workflow of this project](../.forgejo/workflows/build-fedora-40.yml) as an example. | ||||
|  | @ -1,2 +0,0 @@ | |||
| [engine] | ||||
| cgroup_manager = "cgroupfs" | ||||
|  | @ -1,23 +0,0 @@ | |||
| FROM code.lightstands.xyz/standcoded/fedora-minimal:40 | ||||
| 
 | ||||
| RUN dnf install -y --setopt install_weak_deps=False sqlite-devel binutils | ||||
| 
 | ||||
| RUN dnf install -y --setopt install_weak_deps=False nodejs-devel poetry perl-devel ruby-devel | ||||
| 
 | ||||
| RUN dnf install -y --setopt install_weak_deps=False php php-devel composer | ||||
| 
 | ||||
| RUN dnf install -y --setopt install_weak_deps=False java-1.8.0-openjdk java-1.8.0-openjdk-devel | ||||
| 
 | ||||
| RUN dnf install -y --setopt install_weak_deps=False java-11-openjdk java-11-openjdk-devel | ||||
| 
 | ||||
| RUN dnf install -y --setopt install_weak_deps=False java-17-openjdk java-17-openjdk-devel | ||||
| 
 | ||||
| RUN dnf install -y --setopt install_weak_deps=False java-21-openjdk java-21-openjdk-devel | ||||
| 
 | ||||
| RUN dnf install -y --setopt install_weak_deps=False qemu-user-static qemu-user-binfmt | ||||
| 
 | ||||
| RUN dnf install -y --setopt install_weak_deps=False bison flex | ||||
| 
 | ||||
| RUN dnf group install -y --setopt install_weak_deps=False "C Development Tools and Libraries" | ||||
| 
 | ||||
| RUN npm -g install corepack | ||||
|  | @ -1,90 +0,0 @@ | |||
| # fedora:40 | ||||
| 
 | ||||
| ```yaml | ||||
| container: | ||||
|   image: code.lightstands.xyz/standcoded/fedora:40 | ||||
| ``` | ||||
| 
 | ||||
| ## Included Softwares | ||||
| 
 | ||||
| ### General | ||||
| 
 | ||||
| - coreutils | ||||
| - bash | ||||
| - aria2 | ||||
| - jq | ||||
| - yq | ||||
| - zstd | ||||
| - brotil | ||||
| - sqlite | ||||
| - sqlite-devel | ||||
| - binutils | ||||
| 
 | ||||
| ### Version Control | ||||
| 
 | ||||
| - git | ||||
| - git-lfs | ||||
| - git-ftp | ||||
| 
 | ||||
| ### Container Management | ||||
| 
 | ||||
| - podman | ||||
| - buildah | ||||
| - fuse-overlayfs | ||||
| - qemu-user-static | ||||
| - qemu-user-binfmt | ||||
| 
 | ||||
| ### NodeJS | ||||
| 
 | ||||
| - nodejs | ||||
| - nodejs-npm | ||||
| - nodejs-devel | ||||
| - corepack | ||||
| 
 | ||||
| ### Python | ||||
| 
 | ||||
| - python3-devel | ||||
| - python3-pip | ||||
| - pipx | ||||
| - poetry | ||||
| 
 | ||||
| ### Perl | ||||
| 
 | ||||
| - perl | ||||
| - perl-CPAN | ||||
| - perl-devel | ||||
| 
 | ||||
| ### Ruby | ||||
| 
 | ||||
| - ruby | ||||
| - rubygems | ||||
| - ruby-devel | ||||
| 
 | ||||
| ### C | ||||
| 
 | ||||
| - clang | ||||
| - gcc | ||||
| - bison | ||||
| - flex | ||||
| - "C Development Tools and Libraries" | ||||
| 
 | ||||
| ### PHP | ||||
| 
 | ||||
| - php | ||||
| - php-devel | ||||
| - composer | ||||
| 
 | ||||
| ### Java | ||||
| 
 | ||||
| | Version | Packages | | ||||
| | - | - | | ||||
| | 1.8.0 | java-1.8.0-openjdk, java-1.8.0-openjdk-devel | | ||||
| | 11 | java-11-openjdk, java-11-openjdk-devel | | ||||
| | 17 | java-17-openjdk, java-17-openjdk-devel | | ||||
| | 21 | java-21-openjdk, java-21-openjdk-devel | | ||||
| 
 | ||||
| ## Additional Configuration | ||||
| 
 | ||||
| ### Building Container Images | ||||
| 
 | ||||
| This images configured buildah to be correctly run under a container. You can use [The workflow of this project](../.forgejo/workflows/build-fedora-40.yml) as an example. | ||||
|  | @ -1,4 +1,4 @@ | |||
| FROM code.lightstands.xyz/standcoded/fedora-minimal:41 | ||||
| FROM localhost/runner-images/fedora-minimal:41 | ||||
| 
 | ||||
| RUN dnf install -y --setopt install_weak_deps=False sqlite-devel binutils | ||||
| 
 | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
|     "@types/bun": "latest" | ||||
|   }, | ||||
|   "peerDependencies": { | ||||
|     "typescript": "^5.0.0" | ||||
|     "typescript": "^5.7.2" | ||||
|   }, | ||||
|   "packageManager": "bun@1.1.36" | ||||
| } | ||||
|  | @ -7,6 +7,10 @@ const dirName = process.argv[3]; | |||
| const arches = process.argv[4].split(","); | ||||
| const pathToDnfCache = process.env["DNF_CACHE_PATH"]; | ||||
| 
 | ||||
| const stag = tag.split('/'); | ||||
| const imageName = stag[stag.length - 1]; | ||||
| const tempTag = `localhost/runner-images/${imageName}`; | ||||
| 
 | ||||
| await $`buildah manifest create ${tag}`; | ||||
| for (const arch of arches) { | ||||
|     await $`buildah build --arch ${arch} \ | ||||
|  | @ -15,3 +19,5 @@ for (const arch of arches) { | |||
|             --manifest ${tag} \ | ||||
|             --volume ${sharedDir}:/imgbuild:z ${dirName}`; | ||||
| } | ||||
| 
 | ||||
| await $`buildah tag ${tag} ${tempTag}`; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue