Skip to content
Snippets Groups Projects
Commit 132919c3 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

finally remove samba from doc

parent 228de579
No related branches found
No related tags found
No related merge requests found
......@@ -2,16 +2,16 @@
> Use Open Standards, Open Data, Open Source, and Open Innovation.
This project includes a simple, cross-platform, portable CIS client. may also include a modified `smbd` (samba server) to upload package to CIS. You can upload, release, view CIS packages, and run CIS workflows easily in command line, which makes CIS development experience easier.
This project includes a simple, cross-platform, portable CIS client. You can upload, release, view CIS packages, and run CIS workflows easily in command line, which makes CIS development experience easier.
Designed for linux, can 100% run on windows and macOS, but not tested. It is your own business to install all dependencies and make sure they are working.
## Dependency
All these dependencies are confirmed to support Linux (natively), WSL (natively), and win32 (Use your google to find smbclient for win32).
All these dependencies are confirmed to support Linux (natively), WSL (natively), and win32.
These dependencies could also be found on BSD, MacOS, and any OS with a working C++ compiler.
json2table >1.0.6 <https://git.recolic.net/root/json2table>, bash, smbclient (optional) <https://wiki.archlinux.org/index.php/samba#Client>, curl, unix binutil (cut,cat,tr,grep,,find,curl).
json2table >1.0.6 <https://git.recolic.net/root/json2table>, bash, curl, unix binutil (cut,cat,tr,grep,,find,curl).
You may also need bearer-gen to generate bearer-token from PFX in your config file: <https://m365fleetagc.visualstudio.com/Core/_git/bearer-gen>
......@@ -25,7 +25,7 @@ Just copy `antidote-cis` and `antidote.config.sh` to your PATH. It's usually `/u
### 2 - Read and modify config file
Read and modify `antidote.config.sh`. You **must** set `cis_cookie` or `cis_bearer` to access CIS API. You may also want to set `cis_namespace`, `cis_default_workflow_name`, `cis_default_workflow_parameter`, `smb_*` to your own value.
Read and modify `antidote.config.sh`. You **must** set `cis_cookie` or `cis_bearer` to access CIS API. You may also want to set `cis_namespace`, `cis_default_workflow_name`, `cis_default_workflow_parameter` to your own value.
If you're familiar to CIS, you should know how to set them.
......@@ -65,13 +65,19 @@ antidote-cis cloudrun BootstrapDCSeedingServerWorkflow <version_number> \
### Where could I upload package from?
- Push from existing samba share
- Push from local directory
This is the easiest situation. Just run `antidote-cis push //Your/Samba/Link/To/Folder ...`, and it works perfectly without `smbclient`.
```
antidote-cis push path/to/my/workflow ...
```
- Push from local directory
- Push from existing samba share or shared folder
You need to make sure `smbclient` is installed, and modify `antidote.config.sh` to correctly set samba server login information.
> The samba share must be located in CORPNET
```
antidote-cis push smb://YOUR_MACHINE/your/folder ...
```
- Push from CIS itself (trigger an upload)
......@@ -106,5 +112,3 @@ only tested on bash > 4.0.0. please report bug if there's problem on bash 3.x.
This script is only tested within M365FleetAGC team. Please report bug if you realize it not working for you! (Please mailto: bensl@microsoft.com)
smbclient for windows is not working. Possible solution from: http://www.allandynes.com/2016/05/samba-client-for-windows-smbclient-exe-v3-6-25/ , https://recolic.net/blog/post/build-smbclient-for-windows
# This configuration file is a standard bash script.
# You may use any bash commands/syntax here.
##################################################################################################
############################ Upload package without your own samba share #########################
##################################################################################################
# Samba shared account. The share should be writable for all users.
# You can use the built-in shared account, provided by bensl@microsoft.com. You can also build your own.
# Warning that, RECOLICWINBOX maybe offline on Saturday and Sunday (UTC+8).
# smb_provider=//RECOLICVWIN.fareast.corp.microsoft.com/public-smb-share
smb_provider=//RECOLICMSMPC.fareast.corp.microsoft.com/bus
smb_username=public
smb_password=P@ssw0rd
# This should be your own unique domain name.
# Antidote use this domain name as folder name, to avoid collision with other users.
# It's ok to use any string here, but others would be angry if you accidently violates their namespace.
smb_namespace=recolic.net
##################################################################################################
######################################## CIS Authentication ######################################
##################################################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment