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

0 Members and 1 Guest are viewing this topic.

Offline m_dr_m

  • 464 Plus
  • *****
  • Posts: 326
  • 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

Offline Poliander

  • Supporter
  • CPC6128
  • *
  • Posts: 175
  • 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.426
  • 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

Offline m_dr_m

  • 464 Plus
  • *****
  • Posts: 326
  • 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

Offline m_dr_m

  • 464 Plus
  • *****
  • Posts: 326
  • 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

Offline Poliander

  • Supporter
  • CPC6128
  • *
  • Posts: 175
  • 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

Offline zhulien

  • 6128 Plus
  • ******
  • Posts: 917
  • 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

Offline Poliander

  • Supporter
  • CPC6128
  • *
  • Posts: 175
  • 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: 91
  • 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.426
  • 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

  • CPC6128
  • ****
  • Posts: 151
  • 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: 91
  • 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: 91
  • 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.

Offline m_dr_m

  • 464 Plus
  • *****
  • Posts: 326
  • 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: 91
  • 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.

Offline zhulien

  • 6128 Plus
  • ******
  • Posts: 917
  • 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

Offline zhulien

  • 6128 Plus
  • ******
  • Posts: 917
  • 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
1
Members reacted like:
norecess,

Offline genesis8

  • CPC6128
  • ****
  • Posts: 286
  • Country: fr
    • Genesis8 Amstrad Page
    • Awards
Re: Git proxy for CPC?
« Reply #17 on: 23:20, 20 October 21 »

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/
If I remember, PulkoMandy said in the a thread, certainly the willy thread, that it couldnt as I had the same question.
like
0
No reactions
____________
Amstrad news site at Genesis8 Amstrad Page

Offline OffseT

  • CPC6128
  • ****
  • Posts: 151
  • Country: fr
    • Futurs' Freeware Diffusion
    • Awards
Re: Git proxy for CPC?
« Reply #18 on: 12:45, 21 October 21 »
Is the FTP node available for download yet? It looks to work awesomely...
Not yet.

We still have to figure out some issues and it is not clear if they are related to M4 Board firmware or to Z80 code (there is at least one firmware issue which was already fixed by Duke).
BTW, developments were suspended a month ago due to a broken M4 Board.  :(
I should be able to investigate again next month. 8)
« Last Edit: 12:48, 21 October 21 by OffseT »
like
3
Members reacted like:
m_dr_m,ajcasado,norecess,

Offline PulkoMandy

  • 464 Plus
  • *****
  • Posts: 458
  • Country: fr
    • Awards
Re: Git proxy for CPC?
« Reply #19 on: 21:56, 21 October 21 »
The CVX4 won't work, but why would you need that, you can just use a Digiblaster compatible interface on the CPC printer port and it will be just as good? Does Futur's still have some version of the Soundplayer card in stock, or should I build a new batch of these?
like
0
No reactions

Offline ajcasado

  • Supporter
  • CPC664
  • *
  • Posts: 91
  • Country: es
    • Awards
Re: Git proxy for CPC?
« Reply #20 on: 22:05, 21 October 21 »
Not yet.
I downloaded the M4 rom node code available in the unidos site. There is code for the FTP support in it but not enabled to assemble by default.

I enabled the FTP part and assembled it, but the node functionality is not there, I guess that this is not the last developing version of the node.

At least I can connect to my router FTP server and show the logical drive FTP: with the |drive rsx command.

Anyway, its a very promising stuff, thanks for the effort.

« Last Edit: 22:07, 21 October 21 by ajcasado »
like
2
Members reacted like:
XeNoMoRPH,zhulien,
CPC 664

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

Offline OffseT

  • CPC6128
  • ****
  • Posts: 151
  • Country: fr
    • Futurs' Freeware Diffusion
    • Awards
Re: Git proxy for CPC?
« Reply #21 on: 00:44, 22 October 21 »
I downloaded the M4 rom node code available in the unidos site. There is code for the FTP support in it but not enabled to assemble by default.
Yes, it was just some preliminary FTP test code.
Not really usefull for the end users yet.

Current (unreleased, waiting for final fixes) version contains the full featured FTP implemenation.
like
0
No reactions

Offline genesis8

  • CPC6128
  • ****
  • Posts: 286
  • Country: fr
    • Genesis8 Amstrad Page
    • Awards
Re: Git proxy for CPC?
« Reply #22 on: 21:07, 25 October 21 »
The CVX4 won't work, but why would you need that, you can just use a Digiblaster compatible interface on the CPC printer port and it will be just as good? Does Futur's still have some version of the Soundplayer card in stock, or should I build a new batch of these?

You should create a new thread for asking about making a batch of soundplayer (few people will read a thread about using a git proxy on CPC).
I could use one myself.
A stupid question, would it be too complex and costly  to add a small RAM buffer so commands could be used such as :

- 1st header + sending x bytes,
- 2nd header + play the bytes x to y,
- 3rd header meaning stop sound.

Thay way only a very little CPU would be used to play sound during an application.
« Last Edit: 21:09, 25 October 21 by genesis8 »
like
0
No reactions
____________
Amstrad news site at Genesis8 Amstrad Page

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.899
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
    • Awards
Re: Git proxy for CPC?
« Reply #23 on: 22:08, 25 October 21 »
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/
You can use your LambdaSpeak III for such things. I adapted Prodatrons Digitrakker for that.
like
1
Members reacted like:
XeNoMoRPH,
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)