docs: update migration-guide
MODIFY
docs/modules/migration/pages/migrations.adoc
docs/modules/migration/pages/migrations.adoc
@@ -18,14 +18,18 @@ We have provided a migration assistant CLI tool in order to fix this.
* In the `apiman` folder you will find a file called `migration-assistant-cli.jar`.
* You can run the tool as follows. Note that it should be run against the *older/existing installation* (i.e. pre-2.1.0.Final):
-```
+[source,shell]
+----
$ java -jar migration-assistant-cli.jar export upgrade \
--username=admin <1>
--password=admin123! <2>
--endpoint=http://localhost:8080/apiman <3>
--output=/home/myuser/fixed-export.json <4>
--trust-all <5>
-```
+
+# or use it directly as a docker container
+$ docker run --rm -it ghcr.io/ghcr.io/apiman/migration-assistant export upgrade <...>
+----
<1> An Apiman user with administrator privileges.
<2> Password.
<3> Apiman Manager API endpoint of your *old version of Apiman*, often this is your bound hostname followed by `/apiman`.

MODIFY
migration-assistant/pom.xml
migration-assistant/pom.xml
</plugin>
</plugins>
</build>
-
- <profiles>
- <profile>
- <id>docker</id>
- <build>
- <plugins>
- <plugin>
- <groupId>io.fabric8</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>${version.docker.plugin}</version>
- <executions>
- <execution>
- <id>docker-build</id>
- <goals>
- <goal>build</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <images>
- <image>
- <name>apiman/migration-assistant</name>
- <build>
- <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
- <assembly>
- <inline>
- <fileSets>
- <fileSet>
- <includes>
- <include>target/${project.artifactId}-${project.version}-shaded.jar</include>
- </includes>
- <outputDirectory></outputDirectory>
- <filtered>false</filtered>
- <directoryMode>0755</directoryMode>
- <fileMode>0755</fileMode>
- </fileSet>
- </fileSets>
- </inline>
- </assembly>
- </build>
- </image>
- </images>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
\ No newline at end of file

DELETE
migration-assistant/src/main/docker/Dockerfile
-FROM adoptopenjdk/openjdk11:alpine-jre
-
-ADD maven/target/${project.artifactId}-${project.version}-shaded.jar /opt/apiman/apiman-migration-assistant.jar
-
-ENTRYPOINT ["java", "-jar", "/opt/apiman/apiman-migration-assistant.jar"]

docs: update migration-guide