|
| 1 | +[[create-containers]] |
| 2 | + |
| 3 | +=== Create containers for architectures not supported yet. |
| 4 | +In the case of macOS on M1 the performance of amd64/x86_64 is unacceptable. |
| 5 | +We provide a set of scripts that can be used to download specific versions of published artifacts. |
| 6 | +We also provide a script that will create a container using the downloaded artifact for the host platform. |
| 7 | +In the various projects you will find then in `src/local` or `local` folders. |
| 8 | + |
| 9 | +[cols="1,4,6"] |
| 10 | +|=== |
| 11 | +|Project | Scripts | Notes |
| 12 | + |
| 13 | +| [.small]#Data Flow# |
| 14 | +a| |
| 15 | +[.small]#`src/local/download-apps.sh`# + |
| 16 | +[.small]#`src/local/create-containers.sh`# + |
| 17 | +a|[.small]#Download or create container for: `spring-cloud-dataflow-server`,# + |
| 18 | +[.small]#`spring-cloud-dataflow-composed-task-runner`,# + |
| 19 | +[.small]#`spring-cloud-dataflow-single-step-batch-job`,# + |
| 20 | +[.small]#`spring-cloud-dataflow-tasklauncher-sink-kafka`,# + |
| 21 | +[.small]#`spring-cloud-dataflow-tasklauncher-sink-rabbit`# + |
| 22 | + |
| 23 | +|[.small]#Skipper# |
| 24 | +a| |
| 25 | +[.small]#`local/download-app.sh`# + |
| 26 | +[.small]#`local/create-container.sh`# |
| 27 | +|[.small]#Download or create container for: `spring-cloud-skipper-server`# |
| 28 | + |
| 29 | +|[.small]#Stream Applications# |
| 30 | +a| |
| 31 | +[.small]#`local/download-apps.sh`# + |
| 32 | +[.small]#`local/create-containers.sh`# + |
| 33 | +[.small]#`local/pack-containers.sh`# |
| 34 | +| `create-containers.sh` uses `jib` + |
| 35 | +`pack-containers.sh` uses `pack` |
| 36 | +|=== |
| 37 | + |
| 38 | +==== Scripts in `spring-cloud-dataflow` |
| 39 | +===== `src/local/download-apps.sh` |
| 40 | +Downloads all applications needed by `create-containers.sh` from Maven repository. |
| 41 | + |
| 42 | +*If the timestamp of snapshots matches the download will be skipped.* |
| 43 | + |
| 44 | +Usage: `download-apps.sh [version]` |
| 45 | + |
| 46 | +* `version` is the dataflow-server version like `2.9.6`. Default is `2.10.0-SNAPSHOT` |
| 47 | + |
| 48 | +===== `src/local/create-containers.sh` |
| 49 | +Creates all containers and pushes to local docker registry. |
| 50 | + |
| 51 | +This script requires link:https://github.com/GoogleContainerTools/jib/tree/master/jib-cli[jib-cli] |
| 52 | + |
| 53 | +Usage: `create-containers.sh [version] [jre-version]` |
| 54 | + |
| 55 | +* `version` is the dataflow-server version like `2.9.6`. Default is `2.10.0-SNAPSHOT` |
| 56 | +* `jre-version` should be one of 11, 17. Default is 11 |
| 57 | + |
| 58 | +==== Scripts in `spring-cloud-skipper` |
| 59 | + |
| 60 | +===== `local/download-app.sh` |
| 61 | +Downloads all applications needed by `create-containers.sh` from Maven repository. |
| 62 | + |
| 63 | +*If the timestamp of snapshots matches the download will be skipped.* |
| 64 | + |
| 65 | +Usage: `download-app.sh [version]` |
| 66 | + |
| 67 | +* `version` is the skipper version like `2.8.6` or default is `2.9.0-SNAPSHOT` |
| 68 | + |
| 69 | +===== `local/create-container.sh` |
| 70 | +Creates all containers and pushes to local docker registry. |
| 71 | +This script requires link:https://github.com/GoogleContainerTools/jib/tree/master/jib-cli[jib-cli] |
| 72 | + |
| 73 | +Usage: `create-containers.sh [version] [jre-version]` |
| 74 | + |
| 75 | +* `version` is the skipper version like `2.8.6` or default is `2.9.0-SNAPSHOT` |
| 76 | +* `jre-version` should be one of 11, 17 |
| 77 | + |
| 78 | +==== Scripts in `stream-applications` |
| 79 | + |
| 80 | +===== `local/download-apps.sh` |
| 81 | + |
| 82 | +Downloads all applications needed by `create-containers.sh` from Maven repository. |
| 83 | + |
| 84 | +*If the timestamp of snapshots matches the download will be skipped.* |
| 85 | + |
| 86 | +Usage: `download-apps.sh [version] [broker] [filter]` |
| 87 | + |
| 88 | +* `version` is the stream applications version like `3.2.1` or default is `3.2.2-SNAPSHOT` |
| 89 | +* `broker` is one of rabbitmq, rabbit or kafka |
| 90 | +* `filter` is a name of an application or a partial name that will be matched. |
| 91 | + |
| 92 | +===== `local/create-containers.sh` |
| 93 | +Creates all containers and pushes to local docker registry. |
| 94 | + |
| 95 | +This script requires link:https://github.com/GoogleContainerTools/jib/tree/master/jib-cli[jib-cli] |
| 96 | + |
| 97 | +Usage: `create-containers.sh [version] [broker] [jre-version] [filter]` |
| 98 | + |
| 99 | +* `version` is the stream-applications version like `3.2.1` or default is `3.2.2-SNAPSHOT` |
| 100 | +* `broker` is one of rabbitmq, rabbit or kafka |
| 101 | +* `jre-version` should be one of 11, 17 |
| 102 | +* `filter` is a name of an application or a partial name that will be matched. |
| 103 | + |
| 104 | +If the file is not present required to create the container the script will skip the one. |
| 105 | + |
| 106 | +===== `local/pack-containers.sh` |
| 107 | +Creates all containers and pushes to local docker registry. |
| 108 | + |
| 109 | +This script requires link:https://buildpacks.io/docs/tools/pack[packeto pack] |
| 110 | + |
| 111 | +Usage: `pack-containers.sh [version] [broker] [jre-version] [filter]` |
| 112 | + |
| 113 | +* `version` is the stream-applications version like `3.2.1` or default is `3.2.2-SNAPSHOT` |
| 114 | +* `broker` is one of rabbitmq, rabbit or kafka |
| 115 | +* `jre-version` should be one of 11, 17 |
| 116 | +* `filter` is a name of an application or a partial name that will be matched. |
| 117 | + |
| 118 | +If the required file is not present to create the container the script will skip that one. |
| 119 | + |
| 120 | +NOTE: If any parameter is provided all those to the left of it should be considered required. |
0 commit comments