Closed Rwatana closed 4 months ago
@nayuta-ai Please check my code.
app.Dockerfile
is for development environment, not for building binary and running it. Please create another Dockerfile like this.
@nayuta-ai I have modified the changes and confirmed that the service works properly. Please check my code.
➜ base git:(feature/#350_Imprement_Dockerfile_for_notifications_service) ✗ curl -X POST localhost:80/api/notifications -d '{"text":"test", "tweet_id":"1234567"}'
➜ base git:(feature/#350_Imprement_Dockerfile_for_notifications_service) ✗ k logs notifications-app-66cd6ff8f9-ms7hz
[notificationsapi] 16:00:00 HTTP "CreateTweetNotification" mounted on POST /api/notifications
[notificationsapi] 16:00:00 HTTP "./gen/http/openapi.json" mounted on GET /swagger.json
[notificationsapi] 16:00:00 HTTP server listening on "0.0.0.0:80"
[notificationsapi] 16:00:40 id=Eb4hgbi5 req=POST /api/notifications from=192.168.65.4
[notificationsapi] 16:00:40 notifications.CreateTweetNotification
[notificationsapi] 16:00:40 id=Eb4hgbi5 status=200 bytes=0 time=1.645459ms
➜ base git:(feature/#350_Imprement_Dockerfile_for_notifications_service) ✗
Issue Number
350
Implementation Summary
I imprement dockerfile to run notification service permanently and confirmed that the ingress service works properly.
Test
Schedule
7/13