skip to Main Content

Docker image build fails to explode jar

I'm trying to create a multi-stage Dockerfile FROM openjdk:11.0.7-jre-slim-buster AS build ... additional commands RUN mkdir -p target/exploded && (cd target/exploded; jar -xf ../*.jar) But it fails when trying to explode the .jar file, it is present under the target…

VIEW QUESTION

Bash – Extract region from AWS arn

Very simple task: extract the region from an AWS arn. Example: arn:aws:lambda:eu-west-2:12345678912:layer:my-awsome-layer:3 I need to extract eu-west-2 I have a working regex for this: ^(?:[^:]+:){3}([^:]+).* I tried this command, but it returns the entire string: echo "arn:aws:lambda:eu-west-2:12345678912:layer:my-awsome-layer:3" | grep -oP…

VIEW QUESTION
Back To Top
Search