Author Topic: Git proxy for CPC?  (Read 597 times)

0 Members and 1 Guest are viewing this topic.

Online m_dr_m

  • CPC6128
  • ****
  • Posts: 296
  • Country: gb
  • http://orgams.wikidot.com/
    • OrgaMS!
    • Awards
Git proxy for CPC?
« on: 20:02, 28 September 21 »
I'd like to update github or other (*) from my CPC.
Git is a monstrosity, so I'm thinking of a simple proxy on a equally monstrous machine (e.g. ibm pc, commodore amiga ...):


  • You upload your files via ftp from the CPC.
  • A server somewhere would monitor the ftp site.
  • If a special file is changed (e.g. "commit.txt"), it would invoke `git commit`.
  • The ftp site would be the instantaneous source of truth, yet we would have an history of changes.

What do you think?



(*) github: I'm happy with the fact that microsoft is spending money to host open-source. The downside is that you have to check the terms&condition carefully and consistently.
« Last Edit: 04:03, 29 September 21 by m_dr_m »
like
0
No reactions

Online Poliander

  • Supporter
  • CPC6128
  • *
  • Posts: 174
  • Country: de
    • Awards
Re: Git proxy for CPC?
« Reply #1 on: 21:46, 28 September 21 »
Not a big deal, but the "proxy" (more like a FTP/GIT gateway) will require push permission to the GitHub repo
like
0
No reactions
Schneider CPC 664 • X-MEM • X-MASS • CTM 644 • DMP 2160 — Schneider CPC 6128 • M4 Board • Z-MEM • OSSC

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.416
  • Country: fr
    • Awards
Re: Git proxy for CPC?
« Reply #2 on: 01:03, 29 September 21 »
The first step seems the biggest to me... If you're using the M4Board, this should be pretty easy actually to transfer the files to a PC, which could then trigger the commit.
like
0
No reactions
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

Online m_dr_m

  • CPC6128
  • ****
  • Posts: 296
  • Country: gb
  • http://orgams.wikidot.com/
    • OrgaMS!
    • Awards
Re: Git proxy for CPC?
« Reply #3 on: 03:58, 29 September 21 »
I don't have any other machine but my CPC.

That's why I was considering something online. The trigger mechanism should be similar.
And that's not as big a step as you think!

Either way, that's not something I plan to do myself.
I know there are a lot of modern computing enthusiasts here, and was expecting it would interest someone doing such a thing.
« Last Edit: 04:00, 29 September 21 by m_dr_m »
like
0
No reactions

Online m_dr_m

  • CPC6128
  • ****
  • Posts: 296
  • Country: gb
  • http://orgams.wikidot.com/
    • OrgaMS!
    • Awards
Re: Git proxy for CPC?
« Reply #4 on: 04:07, 29 September 21 »
(more like a FTP/GIT gateway)

Thank you for the precision. I also enjoy exactitude.
I was thinking of proxy more in the sense of:
https://tourniquet.bandcamp.com/track/indulgence-by-proxy
Check the drums on this one!
like
0
No reactions

Online Poliander

  • Supporter
  • CPC6128
  • *
  • Posts: 174
  • Country: de
    • Awards
Re: Git proxy for CPC?
« Reply #5 on: 09:25, 29 September 21 »
There are scripts floating around which monitor directories and automatically push changes made to that directory into a git repository. It is basically just setting up a FTP server and monitor a subdirectory (to begin with).

See here for example: https://gist.github.com/darencard/5d42319abcb6ec32bebf6a00ecf99e86
like
0
No reactions
Schneider CPC 664 • X-MEM • X-MASS • CTM 644 • DMP 2160 — Schneider CPC 6128 • M4 Board • Z-MEM • OSSC

Online zhulien

  • 6128 Plus
  • ******
  • Posts: 852
  • Country: au
  • aka Vorax
    • 8bitology
    • Awards
Re: Git proxy for CPC?
« Reply #6 on: 20:19, 01 October 21 »
I think the best solution for CPC would be...


An UniDOS plugin that lets you map a CPC folder to a GIT repository.  I am not sure though how difficult it is to integrate with GIT.
like
0
No reactions

Online Poliander

  • Supporter
  • CPC6128
  • *
  • Posts: 174
  • Country: de
    • Awards
Re: Git proxy for CPC?
« Reply #7 on: 10:39, 02 October 21 »
I don't think it is possible to implement SSL on a CPC (without specialized hardware)
like
0
No reactions
Schneider CPC 664 • X-MEM • X-MASS • CTM 644 • DMP 2160 — Schneider CPC 6128 • M4 Board • Z-MEM • OSSC

Offline ajcasado

  • Supporter
  • CPC664
  • *
  • Posts: 70
  • Country: es
    • Awards
Re: Git proxy for CPC?
« Reply #8 on: 23:10, 03 October 21 »
Maybe an unidos node acting as FTP client connected to a remote FTP server folder maped to a virtual drive?
like
0
No reactions
CPC 664

Empiezas a envejecer cuando dejas de aprender.
You start to get old when you stop learning.

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.416
  • Country: fr
    • Awards
Re: Git proxy for CPC?
« Reply #9 on: 00:21, 04 October 21 »
But how would you commit/push? New RSXs I guess?
But would a SAVE directly mark any file as staged?
And how to resolve conflicts in a nice way?

All this seem quite complicated to perform on a plain CPC... but I might be wrong!
like
0
No reactions
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

Offline OffseT

  • CPC664
  • ***
  • Posts: 142
  • Country: fr
    • Futurs' Freeware Diffusion
    • Awards
Re: Git proxy for CPC?
« Reply #10 on: 01:01, 04 October 21 »
I don't think it is possible to implement SSL on a CPC (without specialized hardware)
True. SSL cannot be handled by our pour Z80.

Maybe an unidos node acting as FTP client connected to a remote FTP server folder maped to a virtual drive?
In fact, it already exists and that's why Madram was asking about some git stuff thru FTP. :P
But I did not communicate on it because we need to figure out about some issues which might still be related to the firmware of the M4 Board.
Duke already fixed one major issue last week (related to M4 firmware internal watchdog), but not everything works as it should yet.

If you are curious about it, I created a small video last month:
http://amsnet.chez.com/tmp/Network-Drive.avi

And of course, this FTP drive could be easily extended to support other network cards than the M4 Board.

The syntax to mount the FTP drive is actually:
|FTP,"host/ip[:port]","login","password"
« Last Edit: 01:13, 04 October 21 by OffseT »
like
0
No reactions

Offline ajcasado

  • Supporter
  • CPC664
  • *
  • Posts: 70
  • Country: es
    • Awards
Re: Git proxy for CPC?
« Reply #11 on: 01:34, 04 October 21 »
Wow, that's awesome!!
like
0
No reactions
CPC 664

Empiezas a envejecer cuando dejas de aprender.
You start to get old when you stop learning.

Offline ajcasado

  • Supporter
  • CPC664
  • *
  • Posts: 70
  • Country: es
    • Awards
Re: Git proxy for CPC?
« Reply #12 on: 14:49, 04 October 21 »
I guess that this app should make the job:
https://github.com/ttskch/ghsync
like
0
No reactions
CPC 664

Empiezas a envejecer cuando dejas de aprender.
You start to get old when you stop learning.

Online m_dr_m

  • CPC6128
  • ****
  • Posts: 296
  • Country: gb
  • http://orgams.wikidot.com/
    • OrgaMS!
    • Awards
Re: Git proxy for CPC?
« Reply #13 on: 12:10, 08 October 21 »
Great find, thanks!


Their FTP example is for `Biz team`. I guess we should add `CPC team`.
like
1
Members reacted like:
zhulien,

Offline ajcasado

  • Supporter
  • CPC664
  • *
  • Posts: 70
  • Country: es
    • Awards
Re: Git proxy for CPC?
« Reply #14 on: 13:03, 08 October 21 »
Great find, thanks!
You're  Welcome!!
Their FTP example is for `Biz team`. I guess we should add `CPC team`.
Absolutely  8)

like
0
No reactions
CPC 664

Empiezas a envejecer cuando dejas de aprender.
You start to get old when you stop learning.

Online zhulien

  • 6128 Plus
  • ******
  • Posts: 852
  • Country: au
  • aka Vorax
    • 8bitology
    • Awards
Re: Git proxy for CPC?
« Reply #15 on: 18:30, 08 October 21 »
If you are curious about it, I created a small video last month:
http://amsnet.chez.com/tmp/Network-Drive.avi



Relating to the other stuff on amsnet.chez.com - if the OPL3LPT card can work with the Willy 2020 adapter, can the CVX4 (COVOX Compatible) one also work?


https://www.the8bitguy.com/product-category/components/
like
0
No reactions

Online zhulien

  • 6128 Plus
  • ******
  • Posts: 852
  • Country: au
  • aka Vorax
    • 8bitology
    • Awards
Re: Git proxy for CPC?
« Reply #16 on: 18:41, 08 October 21 »
Back on-topic...


Is the FTP node available for download yet? It looks to work awesomely...
like
0
No reactions