Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Deployment Dockerfile. Minor fixes. #99

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

manugarri
Copy link

@manugarri manugarri commented Sep 7, 2023

As of March 2023, Debian stretch apt repositories have been archived, making the frontend Dockerfile fail.

This PR allows the frontend Dockerfile to continue to be built.

This pr also fixes other more crucial issues if this project is to support other aws setups.

  • It adds support for custom loggroups , instead of the hardcoded constant
  • It supports jobs with no public ip.
  • it updates aws sdk version.

@CLAassistant
Copy link

CLAassistant commented Sep 7, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Manuel Garrido seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@manugarri manugarri changed the title Update frontend Dockerfile Update Deployment Dockerfile. Minor fixes. Sep 19, 2023
handlers/handlers.go Outdated Show resolved Hide resolved
jobs/postgres_store.go Show resolved Hide resolved
@manugarri
Copy link
Author

side note, i signed the cla, not sure why is not showing up.

@manugarri
Copy link
Author

@JonathanAquino-NextRoll FYI we are going to try ODD (another platform) since its clear this project is not maintained anymore (at least not for users other than Adroll itself).

@JonathanAquino-NextRoll
Copy link
Contributor

ok, sorry about this - super busy

Copy link
Contributor

@JonathanAquino-NextRoll JonathanAquino-NextRoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manugarri Not sure if you are still interested, but I have time this week to review and merge your PR.

@@ -1,6 +1,7 @@
FROM node:10.15.3-stretch

# AWS cli tools
RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you pull from master, we don't need this line anymore. I upgraded from stretch to buster.

@@ -156,6 +156,8 @@ func syncJobsStatus(storer jobs.Storer, status string, queues []string, job_summ
var run_started_time *time.Time
var log_stream_name *string
var task_arn *string
var log_group_name *string
log_group_name = desc.Container.LogConfiguration.Options["awslogs-group"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting the panic below when I run docker-compose up - maybe because I haven't configured awslogs-group?

api_1         | 18:43:54 app         | panic: runtime error: invalid memory address or nil pointer dereference
api_1         | [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x64b5c0]
api_1         |
api_1         | goroutine 24 [running]:
api_1         | 18:43:54 app         | github.com/AdRoll/batchiepatchie/syncer.syncJobsStatus({0xffff89b28098, 0x40000acd68}, {0x94eb22, 0x6}, {0x40000200d0, 0x1, 0x40?}, 0x2?, {0xc68d00, 0x12571a0})
api_1         | 	/go/src/github.com/AdRoll/batchiepatchie/syncer/batchsync.go:161 +0x1000
api_1         | github.com/AdRoll/batchiepatchie/syncer.syncJobs({0xffff89b28098, 0x40000acd68}, {0x40000200d0, 0x1, 0x1})
api_1         | 	/go/src/github.com/AdRoll/batchiepatchie/syncer/batchsync.go:272 +0x1f8
api_1         | github.com/AdRoll/batchiepatchie/syncer.RunSynchronizer({0xc6a0d0?, 0x40000acd68
api_1         | 18:43:54 app         | }, {0x40000200d0, 0x1, 0x1})
api_1         | 	/go/src/github.com/AdRoll/batchiepatchie/syncer/batchsync.go:359 +0x5c
api_1         | github.com/AdRoll/batchiepatchie/syncer.RunPeriodicSynchronizer.func1()
api_1         | 	/go/src/github.com/AdRoll/batchiepatchie/syncer/batchsync.go
api_1         | 18:43:54 app         | :344 +0x168
api_1         | created by github.com/AdRoll/batchiepatchie/syncer.RunPeriodicSynchronizer
api_1         | 	/go/src/github.com/AdRoll/batchiepatchie/syncer/batchsync.go:320 +0xb0

@@ -906,14 +911,19 @@ func (pq *postgreSQLStore) UpdateTaskArnsInstanceIDs(ec2info map[string]Ec2Info,
if !ok {
continue
}
public_ip := ""
if ec2_info.PublicIP != nil {
log.Info("PUBLIC IP NOT NILL", ec2_info.PublicIP)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
log.Info("PUBLIC IP NOT NILL", ec2_info.PublicIP)
log.Info("PUBLIC IP NOT NIL", ec2_info.PublicIP)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants