tomaszmichalak commented on code in PR #80:
URL: 
https://github.com/apache/sling-org-apache-sling-starter/pull/80#discussion_r1043063812


##########
RELEASING.md:
##########
@@ -0,0 +1,12 @@
+# Releasing

Review Comment:
   My steps:
   
   1. Check existing BuildKits:
   ```bash
   > docker buildx ls
   NAME/NODE       DRIVER/ENDPOINT STATUS  BUILDKIT PLATFORMS
   default *       docker
     default       default         running 20.10.21 linux/arm64, linux/amd64, 
linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
   desktop-linux   docker
     desktop-linux desktop-linux   running 20.10.21 linux/arm64, linux/amd64, 
linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
   ```
   2. Create the new BuildKit configuration:
   ```bash
   > docker buildx create --use
   pedantic_shockley
   ```
   3. Build project to init all files in `target`:
   ```bash
   mvn package
   ```
   4. Build images with `--load` (`--output=type=docker`) option
   ```bash
   > docker buildx build --platform linux/arm64  -t 
tomaszmichalaka/sling-starter:20221208 . --output=type=docker
   ...
    => CACHED [linux/arm64 5/7] COPY target/artifacts/ /opt/sling/artifacts/    
                                                                                
                                                                                
    0.0s
    => CACHED [linux/arm64 6/7] RUN find /opt/sling/artifacts -type f -perm 
0600 | xargs --no-run-if-empty chmod 0644                                       
                                                                                
        0.0s
    => CACHED [linux/arm64 7/7] WORKDIR /opt/sling 
   ```
   5. List docker images:
   ```bash
   docker images                                                                
                                                                      ✔ ╱ 8s ╱ 
09:31:20 
   REPOSITORY                                                TAG                
                                                          IMAGE ID       
CREATED          SIZE
   tomaszmichalaka/sling-starter                             20221208           
                                                          3a5fb2966493   15 
minutes ago   520MB
   ```
   
   Please note that `docker buildx build --load` supports only one single 
platform. For multiple platforms, you need to push images to the remote 
registry.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to