Skip to content

Conversation

@haoyuan-l
Copy link

Exist problems with gradle-tasks execution. The docker image and JAR file need to be updated.

@haoyuan-l
Copy link
Author

#21

@haoyuan-l
Copy link
Author

Also solved issue #18 with regex

@haoyuan-l
Copy link
Author

  • Docker build failed with the old Dockerfile, fixed with the latest release.
  1. Ubuntu hirsute is no longer supported since January 20, 2022, replaced with jammy. Solved the error: repository does not have a Release file (non-zero code:100). See the official post: https://fridge.ubuntu.com/2022/01/21/ubuntu-21-04-hirsute-hippo-end-of-life-reached-on-january-20-2022/ and a question post: https://askubuntu.com/questions/1420130/cannot-do-apt-update-ip-address-not-found-no-release-file
  2. It seems openjdk-16-jre is not supported by jammy, install openjdk-16-jre instead.

@haoyuan-l
Copy link
Author

Passed the local test!

@benblamey
Copy link
Member

Looks great will take a detailed look later!

@benblamey
Copy link
Member

Sorry for the delay, will try to look at this today

@haoyuan-l
Copy link
Author

May need to configure the pod Manager to use a volume for storage

@haoyuan-l
Copy link
Author

image

Able to copy the configuration file from the pod, but the tiers didn't restore after rebooting the system.

spec:
containers:
- image: benblamey/hom-impl-2.manager:latest
- image: haoyuan9654/hom-impl-2.manager:latest
Copy link
Member

Choose a reason for hiding this comment

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

it is maybe not necessary to commit changes like this.

Copy link
Member

Choose a reason for hiding this comment

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

i understand its a bit of a muddle. we don't exactly have a great CI process here...

Copy link
Author

Choose a reason for hiding this comment

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

  • Docker build failed with the old Dockerfile, fixed with the latest release.
  1. Ubuntu hirsute is no longer supported since January 20, 2022, replaced with jammy. Solved the error: repository does not have a Release file (non-zero code:100). See the official post: https://fridge.ubuntu.com/2022/01/21/ubuntu-21-04-hirsute-hippo-end-of-life-reached-on-january-20-2022/ and a question post: https://askubuntu.com/questions/1420130/cannot-do-apt-update-ip-address-not-found-no-release-file
  2. It seems openjdk-16-jre is not supported by jammy, install openjdk-16-jre instead.

Understood. I make these changes to fix the docker image build problems

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough should upgrade them. I didn't realise it had got so old.... SNIC is still using Ubuntu 20.

# install curl
RUN apt install -y curl
RUN apt install -y openjdk-16-jre
RUN apt install -y openjdk-18-jre
Copy link
Member

Choose a reason for hiding this comment

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

why did this change?

@@ -1,4 +1,6 @@
FROM ubuntu:hirsute
FROM ubuntu:jammy
Copy link
Member

Choose a reason for hiding this comment

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

Why did this change?
I'm hesitant to update everything inside pods unless it is to fix an issue, it potentially creates more complexity.

RUN kubectl version --client

COPY build/libs/hom-impl-2.manager-1.0-SNAPSHOT.jar output.jar
COPY hom-impl-2.manager-1.0-SNAPSHOT.jar output.jar
Copy link
Member

Choose a reason for hiding this comment

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

not sure. isn't the path here set by gradle?


// Placeholder for existin Kafka stream repr. the input source for the system.
public class InputTier extends Tier {
public class InputTier extends Tier {
Copy link
Member

Choose a reason for hiding this comment

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

ideally want to avoid making changes like this

"grep --extended-regexp --only-matching \"^\\s*\\\"def ([^(])+\\(\" *.ipynb | sed -E \"s/(.+):\\s+\\\"def (.+)\\(/\\1::\\2/\""
}, new File(directory), null, true).stdOut;
// grep --extended-regexp --only-matching "^\s*\"\s*def\s*[_a-zA-Z]+\w*\([_a-zA-Z]+\w*\)" *.ipynb | sed -E "s/(.+):\s+\"def (.+)\(/\1,\2/"
"grep --extended-regexp --only-matching \"^\\s*\\\"def\\s*[_a-zA-Z]+\\w*\\([_a-zA-Z]+\\w*\\)\" *.ipynb | sed -E \"s/(.+):\\s+\\\"def (.+)\\(/\\1::\\2/\""
Copy link
Member

Choose a reason for hiding this comment

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

Lol!
Yes this felt like a bit of a hack at the time....

@benblamey
Copy link
Member

@haoyuan-l
Looks great!
I'm trying to simplify it a bit... this is just a work in progress...
abc9709

@haoyuan-l
Copy link
Author

@haoyuan-l
Looks great!
I'm trying to simplify it a bit... this is just a work in progress...
abc9709

Great, thanks!

@benblamey
Copy link
Member

Sorry @haoyuan-l that was not all the changes

#36

@benblamey
Copy link
Member

I think it is simpler to have one file. Lists should support serialization (this may need to setup somehow I can't remember exactly). Then we just serialize the list of tiers. We do this each time we change anything. We deserialize when starting the pod.

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.

2 participants