Skip to content

Commit

Permalink
chore: Updated Go deploy config and script
Browse files Browse the repository at this point in the history
  • Loading branch information
pchinthapenta committed Mar 21, 2024
1 parent 0aa92d5 commit a1be8d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/deploy/linux/java/javaApp/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<body>
<h2>Hello World!</h2>
</body>
<body>
<h2>Hello World!</h2>
</body>
</html>
5 changes: 5 additions & 0 deletions test/deploy/linux/java/redhat/roles/configure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
PATH: "{{ ansible_env.PATH }}:/opt/jdk-14.0.1/bin:/opt/apache-maven/bin"
JRE_HOME: "/opt/jdk-14.0.1"
become: true

- name: Change the permissions and ownership of javaApp directory
shell: chown -R ec2-user:ec2-user /home/ec2-user/javaApp/ &&
chmod -R 755 /home/ec2-user/javaApp
become: true

- name: Move the package
shell: mv /home/ec2-user/javaApp/target/javaApp.war /opt/tomcat/latest/webapps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
{
"id": "javaApp",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"local_source_path": "/mnt/deployer",
"deploy_script_path": "test/deploy/linux/java/redhat/roles",
"port": 80,
"destinations": ["dummyApp"]
Expand Down

0 comments on commit a1be8d3

Please sign in to comment.