123 Views
October 19, 19
スライド概要
2019/10/19 FileMaker Pro 東京ユーザーズミーティング LT発表資料
Web Application Developer / kintone CERTIFIED App Design Specialist 2020 / kintone CERTIFIED Customization Specialist 2020
fmcsadmin 1.0.0 2019/10/19 FM-TokyoϥΠτχϯάτʔΫൃදࢿྉ দඌಞʢࣜגձࣾΤϛοΫʣ
FileMaker Cloud for AWS • AWSʢAmazon Web Servicesʣ্Ͱಈ࡞ ͢ΔFileMaker७ਖ਼ΫϥυαʔϏε • OSCentOS Linux
FileMaker Admin API • αʔόʔཧ༻ͷAPI • FileMaker Cloud for AWS 1.18͓Αͼ FileMaker Server 18Ͱਖ਼ࣜ൛ʹ
fmsadminίϚϯυ • FileMaker Cloud for AWS 1.18Ͱαϙʔ τ͞Ε͍ͯͳ͍ • ίϚϯυ͋Δ͕࣮ߦͯ͠ Unavailable commandͱදࣔ͞ΕΔ ʢcertificate importར༻Մೳʣ
fmcsadmin • FileMaker Admin APIΛCLIʢίϚϯυϥ ΠϯΠϯλʔϑΣʔεʣͰૢ࡞͢Δπʔ ϧΛΤϛοΫͰ։ൃ https://www.emic.co.jp/products/fmcsadmin/
fmcsadmin • ۩ମతʹ͏ΞϓϦέʔγϣϯͷྫ • ίϚϯυϓϩϯϓτʢWindowsʣ • PowerShellʢWindowsʣ • λʔϛφϧʢmacOSʣ
ਖ਼ࣜ൛ͱͯ͠ެ։ • όʔδϣϯ1.0.0Λ20199݄ʹެ։ • FileMaker Admin API v2Λαϙʔτ
ϦϞʔτཧՄೳ • FileMaker Cloud for AWS্Ͱར༻Ͱ͖Δ Linux൛͚ͩͰͳ͘macOSWindows൛ ༻ҙ • --fqdnΦϓγϣϯͰϦϞʔτཧʹରԠ
fmcsadmin 1.0.0 • FileMaker Cloud for AWS 1.18ʹରԠ • FileMaker Server 18ʹରԠ • FileMaker ServerͷϦϞʔτཧʹରԠ
fmcsadmin 1.0.0 • Windows൛ͷ32Ϗοτ൛ΛՃ • -f͓Αͼ--forceΦϓγϣϯΛՃ ʢCLOSE͓ΑͼSTOPίϚϯυ༻ʣ
fmcsadmin 1.0.0 • GET BACKUPTIMEίϚϯυΛՃ • GET SERVERPREFSίϚϯυΛՃ • SET SERVERPREFSίϚϯυΛՃ
Open Source Software • Go࣮Ͱޠݴ • ਖ਼ࣜ൛ͰMITϥΠηϯεʹมߋ • GitHubͰιʔείʔυΛެ։த https://github.com/emic/fmcsadmin
μϯϩʔυ
μϯϩʔυ • Linux൛ɿfmcsadmin-1.0.0-linux.tar.gz • macOS൛ɿfmcsadmin-1.0.0-macos.zip • Windows൛ɿfmcsadmin-1.0.0-windowsx64.zipʢ64Ϗοτ൛ʣɺfmcsadmin-1.0.0windows-x32.zipʢ32Ϗοτ൛ʣ
FileMaker Cloud for AWS্ Ͱ͏߹ • Linux൛ͷfmcsadminΛμϯϩʔυ • SFTPSCPͰFileMaker Cloud for AWSͷ αʔόʔʹసૹ
FileMaker Cloud for AWS্ Ͱ͏߹ • PowerShellλʔϛφϧΛͬͯ FileMaker Cloud for AWSʹSSHଓ • tarίϚϯυΛͬͯϑΝΠϧΛల։ • fmcsadminϑΝΠϧʹ࣮ߦݶݖΛՃ
࣮ࡁΈͷίϚϯυ • close, disable, disconnect, enable, list, open, pause, resume, run, send, status • start, restart, stop, set, getʢFileMaker Server 18ͰͷΈར༻Մೳʣ • ༻ྫɿfmcsadmin close TestDB
μϯϩʔυ ੋඇ͓ࢼ͍ͩ͘͠͞ https://github.com/emic/fmcsadmin/releases
Travis CI্ͰϏϧυ λάΛଧͭͱTravis CI্Ͱ GitHubͷϦϦʔεϖʔδʹ ࣗಈతʹϏϧυ͓Αͼ ༻ϑΝΠϧ࡞ ༻ϑΝΠϧΛࣗಈΞοϓϩʔυ GitHubͰιʔείʔυΛཧ push όʔδϣϯཧʹGitΛར༻
Travis CI • GitHubͱ࿈͖ͰܞΔCI/CDαʔϏε • ίϛοτϓϧϦΫΤετ͕͋Δͨͼ ʹϢχοτςετ͕ࣗಈ࣮ߦ͞ΕΔ • GitHubͷϦϦʔεػೳͱͷ࿈ܞՄೳ
GoͰCLIπʔϧͷ࡞ • 3ͭͷར • ͷ͢͠͞ • ෳϓϥοτϑΥʔϜͷରԠͷ͠ ͢͞ • ύϑΥʔϚϯε ʮΈΜͳͷGoݱ[ ޠݴͰ͑Δ࣮ફςΫχοΫ]ʯʢٕज़ධࣾʣΑΓ
Goޠݴͷ͍͍ͱ͜Ζ • ඪ४ͰίʔυϑΥʔϚολʔʢgofmtʣ ͕ଐ • ίʔυͷΠϯσϯτվߦҐஔɺม ͷྻͳͲΛࣗಈௐͯ͘͠ΕΔ • ઃఆ߲͕ଘࡏ͠ͳ͍gofmtͷ͓͔͛ ͰಠࣗͷελΠϧ͕ཚཱ͠ͳ͍
https://www.emic.co.jp/products/ fmcsadmin/