Skip to content

Commit

Permalink
docs: update migration-guide
Browse files Browse the repository at this point in the history
  • Loading branch information
volkflo committed Jul 30, 2021
1 parent ba374e4 commit 928b35a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 59 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
report_paths: '**/target/surefire-reports/TEST-*.xml'

e2e:
name: Cypress end-to-end testing
name: Cypress end-to-end testing
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
yarn install --frozen-lockfile
yarn apiman:rebuild
yarn ci
env:
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_DASHBOARD_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -160,11 +160,11 @@ jobs:
./mvnw -B clean package docker:build -P docker -DskipTests
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
docker push apiman/on-wildfly:latest
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker tag apiman/on-wildfly:latest ghcr.io/apiman/on-wildfly:latest
docker push ghcr.io/apiman/on-wildfly:latest
./mvnw -B deploy -DskipTests -Dmaven.test.skip=true
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down
8 changes: 6 additions & 2 deletions docs/modules/migration/pages/migrations.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
48 changes: 0 additions & 48 deletions migration-assistant/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,52 +127,4 @@
</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>
5 changes: 0 additions & 5 deletions migration-assistant/src/main/docker/Dockerfile

This file was deleted.

0 comments on commit 928b35a

Please sign in to comment.