You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build an Angular application using Podman, but the process seems to be stuck as shown in the provided screenshot, and never completes. I've attempted this multiple times over the last 3-4 days without any success.
I have also tried running the command podman system prune -a -f, but it didn't resolve the issue.
The build works fine for the arm64 (default) architecture, but for Azure deployment, I need to build using the amd64 architecture. I'm currently stuck and have not found a solution.
I was using Docker earlier for the same task, but due to licensing issues, I need to use Podman. Any assistance would be greatly appreciated.
Here is the command I am using: podman build --platform linux/amd64 -t ui -f ./ui/Dockerfile.dev . --build-arg NG_APP_ENV=development podman build --arch amd64 -t ui -f ./ui/Dockerfile.dev . --build-arg NG_APP_ENV=development
Steps to reproduce the issue
Use this Dockerfile.dev
FROM node:20-alpine3.18 AS build
ARG NG_APP_ENV
ENV NG_APP_ENV=$NG_APP_ENV
WORKDIR /src
RUN npm install -g @angular/cli
COPY ui/package.json ui/package-lock.json ./
RUN npm install
COPY ui/ .
RUN rm -rf /src/.angular/cache
RUN echo "Running ng build with NG_APP_ENV=$NG_APP_ENV"
Here is the command I am using for the above file podman build --platform linux/amd64 -t ui -f ./ui/Dockerfile.dev . --build-arg NG_APP_ENV=development podman build --arch amd64 -t ui -f ./ui/Dockerfile.dev . --build-arg NG_APP_ENV=development
The process seems to be stuck as shown in the provided screenshot and never completes
Describe the results you expected
Ideally, this command should execute successfully: RUN ng build --c=$NG_APP_ENV --verbose
podman info output
host:
arch: arm64buildahVersion: 1.38.1cgroupControllers:
- cpuset
- cpu
- io
- memory
- pids
- rdma
- misccgroupManager: systemdcgroupVersion: v2conmon:
package: conmon-2.1.12-3.fc41.aarch64path: /usr/bin/conmonversion: 'conmon version 2.1.12, commit: 'cpuUtilization:
idlePercent: 82.85systemPercent: 0.41userPercent: 16.74cpus: 6databaseBackend: sqlitedistribution:
distribution: fedoravariant: coreosversion: "41"eventLogger: journaldfreeLocks: 2048hostname: localhost.localdomainidMappings:
gidmap: nulluidmap: nullkernel: 6.12.7-200.fc41.aarch64linkmode: dynamiclogDriver: journaldmemFree: 5967966208memTotal: 9666719744networkBackend: netavarknetworkBackendInfo:
backend: netavarkdns:
package: aardvark-dns-1.13.1-1.fc41.aarch64path: /usr/libexec/podman/aardvark-dnsversion: aardvark-dns 1.13.1package: netavark-1.13.1-1.fc41.aarch64path: /usr/libexec/podman/netavarkversion: netavark 1.13.1ociRuntime:
name: crunpackage: crun-1.19.1-1.fc41.aarch64path: /usr/bin/crunversion: |- crun version 1.19.1 commit: 3e32a70c93f5aa5fea69b50256cca7fd4aa23c80 rundir: /run/crun spec: 1.0.0 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJLos: linuxpasta:
executable: /usr/bin/pastapackage: passt-0^20241211.g09478d5-1.fc41.aarch64version: | pasta 0^20241211.g09478d5-1.fc41.aarch64-pasta Copyright Red Hat GNU General Public License, version 2 or later <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.remoteSocket:
exists: truepath: unix:///run/podman/podman.sockrootlessNetworkCmd: pastasecurity:
apparmorEnabled: falsecapabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOTrootless: falseseccompEnabled: trueseccompProfilePath: /usr/share/containers/seccomp.jsonselinuxEnabled: trueserviceIsRemote: trueslirp4netns:
executable: /usr/bin/slirp4netnspackage: slirp4netns-1.3.1-1.fc41.aarch64version: |- slirp4netns version 1.3.1 commit: e5e368c4f5db6ae75c2fce786e31eef9da6bf236 libslirp: 4.8.0 SLIRP_CONFIG_VERSION_MAX: 5 libseccomp: 2.5.5swapFree: 0swapTotal: 0uptime: 0h 29m 52.00svariant: v8plugins:
authorization: nulllog:
- k8s-file
- none
- passthrough
- journaldnetwork:
- bridge
- macvlan
- ipvlanvolume:
- localregistries:
search:
- docker.iostore:
configFile: /usr/share/containers/storage.confcontainerStore:
number: 0paused: 0running: 0stopped: 0graphDriverName: overlaygraphOptions:
overlay.imagestore: /usr/lib/containers/storageoverlay.mountopt: nodev,metacopy=ongraphRoot: /var/lib/containers/storagegraphRootAllocated: 98899800064graphRootUsed: 5240287232graphStatus:
Backing Filesystem: xfsNative Overlay Diff: "false"Supports d_type: "true"Supports shifting: "true"Supports volatile: "true"Using metacopy: "true"imageCopyTmpDir: /var/tmpimageStore:
number: 9runRoot: /run/containers/storagetransientStore: falsevolumePath: /var/lib/containers/storage/volumesversion:
APIVersion: 5.3.2Built: 1737504000BuiltTime: Tue Jan 21 19:00:00 2025GitCommit: ""GoVersion: go1.23.4Os: linuxOsArch: linux/arm64Version: 5.3.2
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered:
epssaf
changed the title
Issue while Building Angular Application on Apple M2 Max for amd64
Issue while Building Angular Application on Apple M2 Max for amd64 platform
Feb 10, 2025
i tried to replicate your report with the provided file, but it failed because the lack of whatever is in your ui dir. Can you create a reproducer that doesn't have that requirement?
Issue Description
Hello,
I am trying to build an Angular application using Podman, but the process seems to be stuck as shown in the provided screenshot, and never completes. I've attempted this multiple times over the last 3-4 days without any success.
I have also tried running the command podman system prune -a -f, but it didn't resolve the issue.
The build works fine for the arm64 (default) architecture, but for Azure deployment, I need to build using the amd64 architecture. I'm currently stuck and have not found a solution.
I was using Docker earlier for the same task, but due to licensing issues, I need to use Podman. Any assistance would be greatly appreciated.
Here is the command I am using:
podman build --platform linux/amd64 -t ui -f ./ui/Dockerfile.dev . --build-arg NG_APP_ENV=development
podman build --arch amd64 -t ui -f ./ui/Dockerfile.dev . --build-arg NG_APP_ENV=development
Steps to reproduce the issue
Use this Dockerfile.dev
FROM node:20-alpine3.18 AS build
ARG NG_APP_ENV
ENV NG_APP_ENV=$NG_APP_ENV
WORKDIR /src
RUN npm install -g @angular/cli
COPY ui/package.json ui/package-lock.json ./
RUN npm install
COPY ui/ .
RUN rm -rf /src/.angular/cache
RUN echo "Running ng build with NG_APP_ENV=$NG_APP_ENV"
RUN ng build --c=$NG_APP_ENV --verbose
FROM nginx:latest
LABEL product="myprod"
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /src/dist/myprod/ /usr/share/nginx/html
EXPOSE 80
Here is the command I am using for the above file
podman build --platform linux/amd64 -t ui -f ./ui/Dockerfile.dev . --build-arg NG_APP_ENV=development
podman build --arch amd64 -t ui -f ./ui/Dockerfile.dev . --build-arg NG_APP_ENV=development
The process seems to be stuck as shown in the provided screenshot and never completes
Describe the results you expected
Ideally, this command should execute successfully: RUN ng build --c=$NG_APP_ENV --verbose
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: