linghengqian commented on issue #32777:
URL: 
https://github.com/apache/shardingsphere/issues/32777#issuecomment-2328465931

   > @linghengqian Hi, I think this is unnecessary, because 
`shardingsphere-agent` and `shardingsphere-proxy`are strongly related. And the 
`shardingsphere-proxy` artifact already contains the `shardingsphere-agent`.
   > 
   > Can download it from the official website address 
https://shardingsphere.apache.org/document/current/en/downloads/
   
   - The problem is that 
https://shardingsphere.apache.org/document/current/en/downloads/ only provides 
the latest version. I think we should provide nightly builds of `ShardingSphere 
Agent` at https://github.com/orgs/apache/packages?repo_name=shardingsphere to 
provide for `ShardingSphere JDBC` testing, just like `ShardingSphere Proxy`. 
This can avoid checking in a lot of JAR binaries to git in recurring issues 
like https://github.com/apache/shardingsphere/issues/32793 and 
https://github.com/linghengqian/shardingsphere-agent-master-test .
   - A possible `Dockerfile` might look like,
   ```dockerfile
   FROM alpine AS prepare
   # `APP_NAME` will be dynamically set to 
`apache-shardingsphere-5.5.1-SNAPSHOT-shardingsphere-agent-bin` from 
`distribution/agent/pom.xml`
   ARG APP_NAME
   ADD target/${APP_NAME}.tar.gz /opt
   RUN mv /opt/${APP_NAME} /opt/shardingsphere-agent
   
   FROM eclipse-temurin:22-jdk
   MAINTAINER ShardingSphere "[email protected]"
   ENV LOCAL_PATH /opt/shardingsphere-agent
   COPY --from=prepare /opt/shardingsphere-agent /opt/shardingsphere-agent
   ```


-- 
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